Added stream titles to windows toast notifications (#2044)

Co-authored-by: 23rd <23rd@vivaldi.net>
Co-authored-by: David Myers <dave-myers@outlook.com>
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
yodax
2022-10-30 08:29:43 -04:00
committed by GitHub
parent fa93d63383
commit d23d5c142e
5 changed files with 17 additions and 9 deletions
+4 -2
View File
@@ -19,7 +19,8 @@ enum class ToastReaction {
class Toasts final : public Singleton
{
public:
void sendChannelNotification(const QString &channelName, Platform p);
void sendChannelNotification(const QString &channelName,
const QString &channelTitle, Platform p);
static QString findStringFromReaction(const ToastReaction &reaction);
static QString findStringFromReaction(
const pajlada::Settings::Setting<int> &reaction);
@@ -29,7 +30,8 @@ public:
private:
#ifdef Q_OS_WIN
void sendWindowsNotification(const QString &channelName, Platform p);
void sendWindowsNotification(const QString &channelName,
const QString &channelTitle, Platform p);
#endif
};
} // namespace chatterino