Added functionality of making the flash taskbar last until chatterino is focused again

This commit is contained in:
apa420 2018-10-06 16:58:41 +02:00
parent 099fd88098
commit 29955bd595
3 changed files with 14 additions and 3 deletions

View file

@ -788,8 +788,13 @@ void TwitchMessageBuilder::parseHighlights(bool isPastMsg)
}
if (doAlert) {
QApplication::alert(getApp()->windows->getMainWindow().window(),
2500);
if (getSettings()->longAlerts) {
QApplication::alert(
getApp()->windows->getMainWindow().window(), 0);
} else {
QApplication::alert(
getApp()->windows->getMainWindow().window(), 2500);
}
}
}
}

View file

@ -117,7 +117,8 @@ public:
BoolSetting enableLowercaseLink = {"/links/linkLowercase", true};
/// Ignored phrases
QStringSetting ignoredPhraseReplace = {"/ignore/ignoredPhraseReplace", "***"};
QStringSetting ignoredPhraseReplace = {"/ignore/ignoredPhraseReplace",
"***"};
/// Ingored Users
BoolSetting enableTwitchIgnoredUsers = {"/ignore/enableTwitchIgnoredUsers",
@ -143,6 +144,8 @@ public:
"/highlighting/whisperHighlight/enableTaskbarFlashing", false};
QStringSetting highlightColor = {"/highlighting/color", "#4B282C"};
BoolSetting longAlerts = {"/highlighting/alerts", false};
/// Logging
BoolSetting enableLogging = {"/logging/enabled", false};

View file

@ -149,6 +149,9 @@ HighlightingPage::HighlightingPage()
layout.append(createCheckBox(ALWAYS_PLAY,
getSettings()->highlightAlwaysPlaySound));
layout.append(createCheckBox(
"Flash taskbar only stops highlighting when chatterino is focused",
getSettings()->longAlerts));
}
// ---- misc