mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-25 04:38:23 +00:00
Fix crash when tray icon is disabled on macOS
This commit is contained in:
parent
4fececb94f
commit
5171c0bd77
@ -555,8 +555,8 @@ void MainWindow::psTrayMenuUpdated() {
|
||||
&& trayIcon->contextMenu() != trayIconMenu) {
|
||||
trayIcon->setContextMenu(trayIconMenu);
|
||||
}
|
||||
} else {
|
||||
trayIcon->setContextMenu(0);
|
||||
} else if (trayIcon) {
|
||||
trayIcon->setContextMenu(nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user