Added Live Notification suppression to Streamer Mode (#2342)

This commit is contained in:
Paweł
2021-01-10 15:01:38 +01:00
committed by GitHub
parent 78aae8e93f
commit acbabd2664
6 changed files with 17 additions and 7 deletions
@@ -173,11 +173,15 @@ void NotificationController::getFakeTwitchChannelLiveStatus(
getApp()->toasts->sendChannelNotification(channelName,
Platform::Twitch);
}
if (getSettings()->notificationPlaySound)
if (getSettings()->notificationPlaySound &&
!(isInStreamerMode() &&
getSettings()->streamerModeSupressLiveNotifications))
{
getApp()->notifications->playSound();
}
if (getSettings()->notificationFlashTaskbar)
if (getSettings()->notificationFlashTaskbar &&
!(isInStreamerMode() &&
getSettings()->streamerModeSupressLiveNotifications))
{
getApp()->windows->sendAlert();
}