settings: add option to hide tray icon

This commit is contained in:
tobtoht
2025-03-04 10:09:25 +01:00
parent 3fa9240c0b
commit 88ab38a193
6 changed files with 54 additions and 30 deletions
+7
View File
@@ -286,6 +286,13 @@ void Settings::setupDisplayTab() {
conf()->set(Config::hideNotifications, toggled);
});
// [Hide tray icon]
ui->checkBox_hideTrayIcon->setChecked(conf()->get(Config::hideTrayIcon).toBool());
connect(ui->checkBox_hideTrayIcon, &QCheckBox::toggled, [this](bool toggled) {
conf()->set(Config::hideTrayIcon, toggled);
emit hideTrayIcon(toggled);
});
// [Warn before opening external link]
ui->checkBox_warnOnExternalLink->setChecked(conf()->get(Config::warnOnExternalLink).toBool());
connect(ui->checkBox_warnOnExternalLink, &QCheckBox::clicked, this, [this]{