mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-20 00:28:39 +02:00
settings: add option to hide tray icon
This commit is contained in:
@@ -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]{
|
||||
|
||||
Reference in New Issue
Block a user