mirror of
https://github.com/vale981/tdesktop
synced 2025-03-06 10:11:41 -05: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:
parent
e38d683979
commit
731e53bc99
1 changed files with 3 additions and 0 deletions
|
@ -809,6 +809,9 @@ void MainWindow::toggleDisplayNotifyFromTray() {
|
||||||
Ui::show(Box<InformBox>(lang(lng_passcode_need_unblock)));
|
Ui::show(Box<InformBox>(lang(lng_passcode_need_unblock)));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (!AuthSession::Exists()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
bool soundNotifyChanged = false;
|
bool soundNotifyChanged = false;
|
||||||
Global::SetDesktopNotify(!Global::DesktopNotify());
|
Global::SetDesktopNotify(!Global::DesktopNotify());
|
||||||
|
|
Loading…
Add table
Reference in a new issue