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