From a874b135d0ae8af0f06e8915b458df0f8d8ceec7 Mon Sep 17 00:00:00 2001 From: Martin Hanzlowsky Date: Sun, 7 Dec 2025 20:12:25 +0100 Subject: [PATCH] Another system tray check. --- src/mainwindow.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/mainwindow.cc b/src/mainwindow.cc index a7560a7..84c2af5 100644 --- a/src/mainwindow.cc +++ b/src/mainwindow.cc @@ -207,8 +207,11 @@ void MainWindow::readSettings() auto view = StatusViewFactory::create(viewId, this); setView(view); - m_showInSystemTrayAction->setChecked(showSystemTray); - updateSystemTrayVisible(); + if (m_systemTrayIcon) + { + m_showInSystemTrayAction->setChecked(showSystemTray); + updateSystemTrayVisible(); + } } void MainWindow::writeSettings()