Cleaner flashing code (#774)

This commit is contained in:
apa420
2018-10-07 12:55:44 +02:00
committed by pajlada
parent 767197ab48
commit bb6c2b6135
5 changed files with 15 additions and 22 deletions
@@ -180,13 +180,7 @@ 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);
}
getApp()->windows->sendAlert();
}
}
return Success;