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