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);
|
2500);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (this->args.isReceivedWhisper &&
|
||||||
|
getSettings()->highlightSoundOnWhisper) {
|
||||||
|
if (!hasFocus || getSettings()->highlightAlwaysPlaySound) {
|
||||||
|
player->play();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -120,6 +120,8 @@ public:
|
|||||||
BoolSetting enableHighlightTaskbar = {"/highlighting/enableTaskbarFlashing",
|
BoolSetting enableHighlightTaskbar = {"/highlighting/enableTaskbarFlashing",
|
||||||
true};
|
true};
|
||||||
BoolSetting customHighlightSound = {"/highlighting/useCustomSound", false};
|
BoolSetting customHighlightSound = {"/highlighting/useCustomSound", false};
|
||||||
|
BoolSetting highlightSoundOnWhisper = {
|
||||||
|
"/highlighting/highlightSoundOnWhisper", false};
|
||||||
|
|
||||||
/// Logging
|
/// Logging
|
||||||
BoolSetting enableLogging = {"/logging/enabled", false};
|
BoolSetting enableLogging = {"/logging/enabled", false};
|
||||||
|
|||||||
@@ -149,6 +149,8 @@ HighlightingPage::HighlightingPage()
|
|||||||
|
|
||||||
layout.append(createCheckBox(ALWAYS_PLAY,
|
layout.append(createCheckBox(ALWAYS_PLAY,
|
||||||
getSettings()->highlightAlwaysPlaySound));
|
getSettings()->highlightAlwaysPlaySound));
|
||||||
|
layout.append(createCheckBox(("Notification on whisper"),
|
||||||
|
getSettings()->highlightSoundOnWhisper));
|
||||||
}
|
}
|
||||||
|
|
||||||
// ---- misc
|
// ---- misc
|
||||||
|
|||||||
Reference in New Issue
Block a user