mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix crash when tray icon is disabled on macOS
This commit is contained in:
parent
4fececb94f
commit
5171c0bd77
1 changed files with 2 additions and 2 deletions
|
@ -555,8 +555,8 @@ void MainWindow::psTrayMenuUpdated() {
|
||||||
&& trayIcon->contextMenu() != trayIconMenu) {
|
&& trayIcon->contextMenu() != trayIconMenu) {
|
||||||
trayIcon->setContextMenu(trayIconMenu);
|
trayIcon->setContextMenu(trayIconMenu);
|
||||||
}
|
}
|
||||||
} else {
|
} else if (trayIcon) {
|
||||||
trayIcon->setContextMenu(0);
|
trayIcon->setContextMenu(nullptr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue