mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Fix crash in tray icon notifications toggle.
While we have the same tray menu for an authorized user and not.
This commit is contained in:
@@ -809,6 +809,9 @@ void MainWindow::toggleDisplayNotifyFromTray() {
|
||||
Ui::show(Box<InformBox>(lang(lng_passcode_need_unblock)));
|
||||
return;
|
||||
}
|
||||
if (!AuthSession::Exists()) {
|
||||
return;
|
||||
}
|
||||
|
||||
bool soundNotifyChanged = false;
|
||||
Global::SetDesktopNotify(!Global::DesktopNotify());
|
||||
|
Reference in New Issue
Block a user