2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-10-19 14:46:58 +00:00

Push all QSaveFile-s to background thread.

This commit is contained in:
John Preston
2020-10-07 12:00:31 +03:00
parent 3cad89f299
commit 197b3c1cb5
6 changed files with 255 additions and 76 deletions

View File

@@ -157,6 +157,7 @@ void Step::finish(const MTPUser &user, QImage &&photo) {
_account->logOut();
crl::on_main(raw, [=] {
Core::App().domain().activate(raw);
Local::sync();
});
return;
}
@@ -203,6 +204,7 @@ void Step::createSession(
if (session.supportMode()) {
PrepareSupportMode(&session);
}
Local::sync();
}
void Step::paintEvent(QPaintEvent *e) {