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:
John Preston 2017-03-23 15:30:16 +03:00
parent e38d683979
commit 731e53bc99

View file

@ -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());