2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Add AUTH_KEY_DROP_ service notification support.

Also move logout code to Messenger.
This commit is contained in:
John Preston
2018-06-04 21:18:52 +03:00
parent 1d1bd5e1e7
commit a2d4b9260e
11 changed files with 120 additions and 67 deletions

View File

@@ -606,11 +606,15 @@ void MainWindow::onShowNewChannel() {
}
void MainWindow::onLogout() {
if (isHidden()) showFromTray();
if (isHidden()) {
showFromTray();
}
Ui::show(Box<ConfirmBox>(lang(lng_sure_logout), lang(lng_settings_logout), st::attentionBoxButton, [] {
App::logOut();
}));
Ui::show(Box<ConfirmBox>(
lang(lng_sure_logout),
lang(lng_settings_logout),
st::attentionBoxButton,
[] { Messenger::Instance().logOut(); }));
}
void MainWindow::quitFromTray() {