Skip to content
Snippets Groups Projects
Commit 6019918a authored by Yang Wang's avatar Yang Wang Committed by Andreas Traczyk
Browse files

system tray: fix icon behavior

Change-Id: I4b093272431701a79c9ee9bbcf745fd50e4202e3
Gitlab: #494
parent 130a7a46
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment