added settings for dot next to channel name

This commit is contained in:
apa420 2018-08-18 13:07:12 +02:00
parent 15e9e3e642
commit 3d109a6ca3
2 changed files with 5 additions and 2 deletions

View file

@ -145,6 +145,7 @@ public:
BoolSetting notificationPlaySound = {"/notifications/enablePlaySound", BoolSetting notificationPlaySound = {"/notifications/enablePlaySound",
false}; false};
BoolSetting notificationToast = {"/notifications/enableToast", false}; BoolSetting notificationToast = {"/notifications/enableToast", false};
BoolSetting notificationDot = {"/notifications/enableDot", false};
/// External tools /// External tools
// Streamlink // Streamlink

View file

@ -28,8 +28,7 @@ NotificationPage::NotificationPage()
{ {
auto settings = tabs.appendTab(new QVBoxLayout, "Options"); auto settings = tabs.appendTab(new QVBoxLayout, "Options");
{ {
settings.emplace<QLabel>( settings.emplace<QLabel>("Enable for selected channels");
"Enable for channel next to channel name");
settings.append(this->createCheckBox( settings.append(this->createCheckBox(
"Flash taskbar", "Flash taskbar",
getApp()->settings->notificationFlashTaskbar)); getApp()->settings->notificationFlashTaskbar));
@ -39,6 +38,9 @@ NotificationPage::NotificationPage()
settings.append(this->createCheckBox( settings.append(this->createCheckBox(
"Enable toasts (currently only for windows 8.x or 10)", "Enable toasts (currently only for windows 8.x or 10)",
getApp()->settings->notificationToast)); getApp()->settings->notificationToast));
settings.append(
this->createCheckBox("Red dot next to live splits",
getApp()->settings->notificationDot));
settings->addStretch(1); settings->addStretch(1);
} }