stuff does compile
This commit is contained in:
@@ -35,16 +35,19 @@ NotificationPage::NotificationPage()
|
||||
getApp()->settings->notificationFlashTaskbar));
|
||||
settings.append(this->createCheckBox(
|
||||
"Playsound", getApp()->settings->notificationPlaySound));
|
||||
settings.append(this->createCheckBox(
|
||||
"Enable toasts (currently only for windows)",
|
||||
getApp()->settings->notificationToast));
|
||||
|
||||
settings->addStretch(1);
|
||||
}
|
||||
auto twitchChannels = tabs.appendTab(new QVBoxLayout, "Twitch");
|
||||
{
|
||||
int i = 0;
|
||||
EditableModelView *view =
|
||||
twitchChannels
|
||||
.emplace<EditableModelView>(
|
||||
getApp()->notifications->createModel(nullptr, i))
|
||||
getApp()->notifications->createModel(
|
||||
nullptr, Platform::Twitch))
|
||||
.getElement();
|
||||
view->setTitles({"Twitch channels"});
|
||||
|
||||
@@ -64,11 +67,11 @@ NotificationPage::NotificationPage()
|
||||
}
|
||||
auto mixerChannels = tabs.appendTab(new QVBoxLayout, "Mixer");
|
||||
{
|
||||
int i = 1;
|
||||
EditableModelView *view =
|
||||
mixerChannels
|
||||
.emplace<EditableModelView>(
|
||||
getApp()->notifications->createModel(nullptr, i))
|
||||
getApp()->notifications->createModel(
|
||||
nullptr, Platform::Mixer))
|
||||
.getElement();
|
||||
view->setTitles({"Mixer channels"});
|
||||
|
||||
|
||||
@@ -161,14 +161,12 @@ std::unique_ptr<QMenu> SplitHeader::createMainMenu()
|
||||
action->setCheckable(true);
|
||||
|
||||
QObject::connect(menu.get(), &QMenu::aboutToShow, this, [action, this]() {
|
||||
int i = 0;
|
||||
action->setChecked(getApp()->notifications->isChannelNotified(
|
||||
this->split_->getChannel()->getName(), i));
|
||||
this->split_->getChannel()->getName(), Platform::Twitch));
|
||||
});
|
||||
action->connect(action, &QAction::triggered, this, [this]() {
|
||||
int i = 0;
|
||||
getApp()->notifications->updateChannelNotification(
|
||||
this->split_->getChannel()->getName(), i);
|
||||
this->split_->getChannel()->getName(), Platform::Twitch);
|
||||
});
|
||||
menu->addAction(action);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user