temp stuff

This commit is contained in:
apa420
2018-08-12 15:29:40 +02:00
parent 2de99ca9f5
commit 54166ec130
8 changed files with 185 additions and 50 deletions
+5 -2
View File
@@ -159,13 +159,16 @@ std::unique_ptr<QMenu> SplitHeader::createMainMenu()
auto action = new QAction(this);
action->setText("Notify when live");
action->setCheckable(true);
QObject::connect(menu.get(), &QMenu::aboutToShow, this, [action, this]() {
int i = 0;
action->setChecked(getApp()->notifications->isChannelNotified(
this->split_->getChannel()->getName()));
this->split_->getChannel()->getName(), i));
});
action->connect(action, &QAction::triggered, this, [this]() {
int i = 0;
getApp()->notifications->updateChannelNotification(
this->split_->getChannel()->getName());
this->split_->getChannel()->getName(), i);
});
menu->addAction(action);