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

Move export management to Core::App.

This commit is contained in:
John Preston
2020-06-25 11:14:05 +04:00
parent 28cafb129e
commit 65050bf9dd
16 changed files with 209 additions and 104 deletions

View File

@@ -25,8 +25,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "core/shortcuts.h"
#include "core/sandbox.h"
#include "core/application.h"
#include "main/main_session.h"
#include "export/export_manager.h"
#include "intro/intro_widget.h"
#include "main/main_session.h"
#include "main/main_account.h" // Account::sessionValue.
#include "mainwidget.h"
#include "boxes/confirm_box.h"
@@ -675,9 +676,9 @@ void MainWindow::showLogoutConfirmation() {
}
if (account
&& account->sessionExists()
&& account->session().data().exportInProgress()) {
&& Core::App().exportManager().inProgress(&account->session())) {
Ui::hideLayer();
account->session().data().stopExportWithConfirmation([=] {
Core::App().exportManager().stopWithConfirmation([=] {
Core::App().logout(account);
});
} else {