Added option that hides notifications

Added option that hides status notifications.
This commit is contained in:
Stig Atle Steffensen
2022-12-28 17:41:07 +01:00
parent 2a7acddfaa
commit 919edeec14
5 changed files with 41 additions and 23 deletions
+7 -1
View File
@@ -115,6 +115,12 @@ void Settings::setupPrivacyTab() {
m_ctx->updateBalance();
});
// [Hide notifications]
ui->checkBox_hideNotifications->setChecked(config()->get(Config::hideNotifications).toBool());
connect(ui->checkBox_hideNotifications, &QCheckBox::toggled, [this](bool toggled){
config()->set(Config::hideNotifications, toggled);
});
// [Disable websocket]
ui->checkBox_enableWebsocket->setChecked(!config()->get(Config::disableWebsocket).toBool());
connect(ui->checkBox_enableWebsocket, &QCheckBox::toggled, [this](bool checked){
@@ -273,4 +279,4 @@ void Settings::closeEvent(QCloseEvent *event) {
event->accept();
}
Settings::~Settings() = default;
Settings::~Settings() = default;