mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 13:47:05 +02:00
Fix connection to QSystemTrayIcon::messageClicked in main_window_win
This commit is contained in:
parent
e247be7e33
commit
8142e83395
1 changed files with 5 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue