2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Add upload cancel confirmation on Quit and Log Out.

This commit is contained in:
John Preston
2022-01-26 12:41:27 +03:00
parent 8c349c0515
commit 6a3ad52aef
13 changed files with 195 additions and 48 deletions

View File

@@ -350,7 +350,7 @@ void MainMenu::AccountButton::contextMenuEvent(QContextMenuEvent *e) {
const auto session = _session;
const auto callback = [=](Fn<void()> &&close) {
close();
Core::App().logout(&session->account());
Core::App().logoutWithChecks(&session->account());
};
Ui::show(Box<Ui::ConfirmBox>(
tr::lng_sure_logout(tr::now),