mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +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->setContextMenu(trayIconMenu);
|
||||
}
|
||||
} else {
|
||||
trayIcon->setContextMenu(0);
|
||||
} else if (trayIcon) {
|
||||
trayIcon->setContextMenu(nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue