UI: WindowManager: Simplify updateTrayIconVisibility()

This commit is contained in:
Nodir Temirkhodjaev 2024-01-13 18:16:39 +03:00
parent f8cf1b5820
commit f965b6a447

View File

@ -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();