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,10 +180,15 @@ void NotificationController::getFakeTwitchChannelLiveStatus(
getApp()->notifications->playSound();
}
if (getSettings()->notificationFlashTaskbar) {
if (getSettings()->longAlerts) {
QApplication::alert(
getApp()->windows->getMainWindow().window(), 0);
} else {
QApplication::alert(
getApp()->windows->getMainWindow().window(), 2500);
}
}
}
return Success;
});

View file

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