Add the option to disable a certain message
This commit is contained in:
parent
71e1410b9f
commit
df1186e021
@ -543,11 +543,15 @@ void MainWindow::notificationsChanged()
|
||||
break;
|
||||
}
|
||||
|
||||
QMessageBox box(icon, tr("Notification"), entry.message, QMessageBox::Ok, this);
|
||||
QMessageBox box(icon, tr("Notification"), entry.message, QMessageBox::Close, this);
|
||||
QPushButton *dontShowAgainButton = box.addButton(tr("Don't show again"), QMessageBox::AcceptRole);
|
||||
box.exec();
|
||||
if (box.clickedButton() == dontShowAgainButton)
|
||||
{
|
||||
shownNotifications.append(entry.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
MMC->settings()->set("ShownNotifications", intListToString(shownNotifications));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user