From aac2afedf5d47d0deb46a76f0b9d4c47e009e660 Mon Sep 17 00:00:00 2001 From: apa420 Date: Sat, 6 Oct 2018 17:06:38 +0200 Subject: [PATCH] added it for every flash taskbar --- .../notifications/NotificationController.cpp | 9 +++++++-- src/providers/twitch/TwitchChannel.cpp | 10 ++++++++-- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/src/controllers/notifications/NotificationController.cpp b/src/controllers/notifications/NotificationController.cpp index 2b68b130f..653db98c9 100644 --- a/src/controllers/notifications/NotificationController.cpp +++ b/src/controllers/notifications/NotificationController.cpp @@ -180,8 +180,13 @@ void NotificationController::getFakeTwitchChannelLiveStatus( getApp()->notifications->playSound(); } if (getSettings()->notificationFlashTaskbar) { - QApplication::alert( - getApp()->windows->getMainWindow().window(), 2500); + if (getSettings()->longAlerts) { + QApplication::alert( + getApp()->windows->getMainWindow().window(), 0); + } else { + QApplication::alert( + getApp()->windows->getMainWindow().window(), 2500); + } } } return Success; diff --git a/src/providers/twitch/TwitchChannel.cpp b/src/providers/twitch/TwitchChannel.cpp index a219ce690..55d9b6506 100644 --- a/src/providers/twitch/TwitchChannel.cpp +++ b/src/providers/twitch/TwitchChannel.cpp @@ -408,8 +408,14 @@ void TwitchChannel::setLive(bool newLiveStatus) getApp()->notifications->playSound(); } if (getSettings()->notificationFlashTaskbar) { - QApplication::alert( - getApp()->windows->getMainWindow().window(), 2500); + if (getSettings()->longAlerts) { + QApplication::alert( + getApp()->windows->getMainWindow().window(), 0); + } else { + QApplication::alert( + getApp()->windows->getMainWindow().window(), + 2500); + } } } auto live = makeSystemMessage(this->getName() + " is live");