mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
added it for every flash taskbar
This commit is contained in:
parent
29955bd595
commit
aac2afedf5
2 changed files with 15 additions and 4 deletions
|
@ -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;
|
||||
});
|
||||
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue