added it for every flash taskbar

This commit is contained in:
apa420 2018-10-06 17:06:38 +02:00
parent 29955bd595
commit aac2afedf5
2 changed files with 15 additions and 4 deletions

View file

@ -180,8 +180,13 @@ void NotificationController::getFakeTwitchChannelLiveStatus(
getApp()->notifications->playSound(); getApp()->notifications->playSound();
} }
if (getSettings()->notificationFlashTaskbar) { if (getSettings()->notificationFlashTaskbar) {
QApplication::alert( if (getSettings()->longAlerts) {
getApp()->windows->getMainWindow().window(), 2500); QApplication::alert(
getApp()->windows->getMainWindow().window(), 0);
} else {
QApplication::alert(
getApp()->windows->getMainWindow().window(), 2500);
}
} }
} }
return Success; return Success;

View file

@ -408,8 +408,14 @@ void TwitchChannel::setLive(bool newLiveStatus)
getApp()->notifications->playSound(); getApp()->notifications->playSound();
} }
if (getSettings()->notificationFlashTaskbar) { if (getSettings()->notificationFlashTaskbar) {
QApplication::alert( if (getSettings()->longAlerts) {
getApp()->windows->getMainWindow().window(), 2500); QApplication::alert(
getApp()->windows->getMainWindow().window(), 0);
} else {
QApplication::alert(
getApp()->windows->getMainWindow().window(),
2500);
}
} }
} }
auto live = makeSystemMessage(this->getName() + " is live"); auto live = makeSystemMessage(this->getName() + " is live");