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:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user