Fix connection to QSystemTrayIcon::messageClicked in main_window_win

This commit is contained in:
Ilya Fedin 2020-12-27 22:45:30 +04:00 committed by John Preston
parent e247be7e33
commit 8142e83395
1 changed files with 5 additions and 1 deletions

View File

@ -217,7 +217,11 @@ void MainWindow::psSetupTrayIcon() {
auto icon = QIcon(App::pixmapFromImageInPlace(Core::App().logoNoMargin()));
trayIcon->setIcon(icon);
connect(trayIcon, SIGNAL(messageClicked()), this, SLOT(showFromTray()));
connect(
trayIcon,
&QSystemTrayIcon::messageClicked,
this,
[=] { App::wnd()->showFromTray(); });
attachToTrayIcon(trayIcon);
}
updateIconCounters();