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,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;
|
||||||
|
|
|
@ -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");
|
||||||
|
|
Loading…
Reference in a new issue