mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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()));
|
auto icon = QIcon(App::pixmapFromImageInPlace(Core::App().logoNoMargin()));
|
||||||
|
|
||||||
trayIcon->setIcon(icon);
|
trayIcon->setIcon(icon);
|
||||||
connect(trayIcon, SIGNAL(messageClicked()), this, SLOT(showFromTray()));
|
connect(
|
||||||
|
trayIcon,
|
||||||
|
&QSystemTrayIcon::messageClicked,
|
||||||
|
this,
|
||||||
|
[=] { App::wnd()->showFromTray(); });
|
||||||
attachToTrayIcon(trayIcon);
|
attachToTrayIcon(trayIcon);
|
||||||
}
|
}
|
||||||
updateIconCounters();
|
updateIconCounters();
|
||||||
|
|
Loading…
Add table
Reference in a new issue