Added functionality of making the flash taskbar last until the app is focused again (#767)

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

* added it for every flash taskbar

Fixes #760
This commit is contained in:
apa420
2018-10-06 17:51:13 +02:00
committed by pajlada
parent 98c1d61e78
commit 5dce212cb4
5 changed files with 29 additions and 7 deletions
@@ -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);
}
}
}
}