mirror of
https://github.com/tnodir/fort
synced 2024-11-15 06:35:23 +00:00
UI: WindowManager: Simplify updateTrayIconVisibility()
This commit is contained in:
parent
f8cf1b5820
commit
f965b6a447
@ -233,11 +233,7 @@ void WindowManager::setupByIniUser(const IniUser &ini)
|
||||
|
||||
void WindowManager::updateTrayIconVisibility(const IniUser &ini)
|
||||
{
|
||||
const bool trayShowIcon = ini.trayShowIcon();
|
||||
if ((trayShowIcon == trayIcon()->isVisible()) && (trayShowIcon || homeWindow()))
|
||||
return;
|
||||
|
||||
if (trayShowIcon) {
|
||||
if (ini.trayShowIcon()) {
|
||||
showTrayIcon();
|
||||
} else {
|
||||
closeTrayIcon();
|
||||
|
Loading…
Reference in New Issue
Block a user