From 8f77dccb91adb68473118170775da0c828b354f0 Mon Sep 17 00:00:00 2001 From: apa420 Date: Fri, 24 Aug 2018 18:38:27 +0200 Subject: [PATCH] testing emoji because having windows 8 sucks --- src/controllers/notifications/NotificationController.cpp | 3 +-- src/singletons/Toasts.cpp | 7 +++---- src/widgets/splits/SplitHeader.cpp | 3 +++ 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/controllers/notifications/NotificationController.cpp b/src/controllers/notifications/NotificationController.cpp index 5f184bc33..325e92998 100644 --- a/src/controllers/notifications/NotificationController.cpp +++ b/src/controllers/notifications/NotificationController.cpp @@ -74,7 +74,6 @@ void NotificationController::removeChannelNotification( } } } -/////////////////////////////////////////////////// void NotificationController::playSound() { static auto player = new QMediaPlayer; @@ -94,7 +93,7 @@ void NotificationController::playSound() } player->play(); } -/////////////////////////////////////////////////// + NotificationModel *NotificationController::createModel(QObject *parent, Platform p) { diff --git a/src/singletons/Toasts.cpp b/src/singletons/Toasts.cpp index c6c1fac96..f314a422c 100644 --- a/src/singletons/Toasts.cpp +++ b/src/singletons/Toasts.cpp @@ -68,10 +68,6 @@ void Toasts::sendChannelNotification(const QString &channelName, Platform p) #ifdef Q_OS_WIN -/*const override void CustomToastHandler::toastActivated() -{ -}*/ - class CustomHandler : public WinToastLib::IWinToastHandler { private: @@ -122,6 +118,9 @@ void Toasts::sendWindowsNotification(const QString &channelName, Platform p) Path = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation) + "2/cache/profileAvatars/twitch/" + channelName + ".png"; + // Change it to this below v + // Path = getApp()->paths->cacheDirectory() + "profileAvatars/twitch/" + + // channelName + ".png"; } std::string temp_Utf8 = Path.toUtf8().constData(); std::wstring imagePath = std::wstring(temp_Utf8.begin(), temp_Utf8.end()); diff --git a/src/widgets/splits/SplitHeader.cpp b/src/widgets/splits/SplitHeader.cpp index aa28bb18c..5cc4d85fe 100644 --- a/src/widgets/splits/SplitHeader.cpp +++ b/src/widgets/splits/SplitHeader.cpp @@ -383,6 +383,9 @@ void SplitHeader::updateChannelText() } else { title += " (live)"; } + if (getSettings()->notificationDot) { + title += QByteArray(" 🔴 "); + } if (getSettings()->showViewerCount) { title += " - " + QString::number(streamStatus->viewerCount) + " viewers";