diff --git a/mainwindow.cpp b/mainwindow.cpp index 3c5c1835b0da4621fe7c53274c0b3df11a06f65b..25bc1e018438cc4ec90500776e71359af7c95e66 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -85,7 +85,6 @@ MainWindow::MainWindow(QWidget* parent) [this]() { if (auto currentWidget = dynamic_cast<NavWidget*>(ui->navStack->currentWidget())) { emit currentWidget->NavigationRequested(ScreenEnum::SetttingsScreen); - setWindowState(Qt::WindowActive); showWindow(); } }); @@ -233,7 +232,7 @@ bool MainWindow::nativeEvent(const QByteArray& eventType, void* message, long* r void MainWindow::trayActivated(QSystemTrayIcon::ActivationReason reason) { if (reason != QSystemTrayIcon::ActivationReason::Context) - this->show(); + showWindow(); } void MainWindow::showWindow()