Added functionality of option of highlightsound on whisper (#692)
Fixes #640
This commit is contained in:
@@ -578,6 +578,12 @@ void TwitchMessageBuilder::parseHighlights(bool isPastMsg)
|
||||
2500);
|
||||
}
|
||||
}
|
||||
if (this->args.isReceivedWhisper &&
|
||||
getSettings()->highlightSoundOnWhisper) {
|
||||
if (!hasFocus || getSettings()->highlightAlwaysPlaySound) {
|
||||
player->play();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -120,6 +120,8 @@ public:
|
||||
BoolSetting enableHighlightTaskbar = {"/highlighting/enableTaskbarFlashing",
|
||||
true};
|
||||
BoolSetting customHighlightSound = {"/highlighting/useCustomSound", false};
|
||||
BoolSetting highlightSoundOnWhisper = {
|
||||
"/highlighting/highlightSoundOnWhisper", false};
|
||||
|
||||
/// Logging
|
||||
BoolSetting enableLogging = {"/logging/enabled", false};
|
||||
|
||||
@@ -149,6 +149,8 @@ HighlightingPage::HighlightingPage()
|
||||
|
||||
layout.append(createCheckBox(ALWAYS_PLAY,
|
||||
getSettings()->highlightAlwaysPlaySound));
|
||||
layout.append(createCheckBox(("Notification on whisper"),
|
||||
getSettings()->highlightSoundOnWhisper));
|
||||
}
|
||||
|
||||
// ---- misc
|
||||
|
||||
Reference in New Issue
Block a user