mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-19 16:18:39 +02:00
settings: add option to hide tray icon
This commit is contained in:
@@ -45,7 +45,7 @@ WindowManager::WindowManager(QObject *parent)
|
||||
m_tray = new QSystemTrayIcon(icons()->icon("appicons/64x64.png"));
|
||||
m_tray->setToolTip("Feather Wallet");
|
||||
this->buildTrayMenu();
|
||||
m_tray->show();
|
||||
m_tray->setVisible(!conf()->get(Config::hideTrayIcon).toBool());
|
||||
|
||||
this->initSkins();
|
||||
this->patchMacStylesheet();
|
||||
@@ -194,6 +194,9 @@ void WindowManager::showSettings(Nodes *nodes, QWidget *parent, bool showProxyTa
|
||||
window->onHideUpdateNotifications(hidden);
|
||||
}
|
||||
});
|
||||
connect(&settings, &Settings::hideTrayIcon, [this](bool hidden) {
|
||||
m_tray->setVisible(!hidden);
|
||||
});
|
||||
connect(&settings, &Settings::pluginConfigured, [this](const QString &id) {
|
||||
emit pluginConfigured(id);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user