2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Remove app module. Support delayed quit by Cmd+Q on macOS.

This commit is contained in:
John Preston
2022-01-27 15:48:51 +03:00
parent b8f1cebeb6
commit 28f2c213f7
38 changed files with 319 additions and 350 deletions

View File

@@ -36,7 +36,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "main/main_domain.h"
#include "main/main_session.h"
#include "mtproto/facade.h"
#include "app.h"
#include "styles/style_settings.h"
#ifndef TDESKTOP_DISABLE_SPELLCHECK
@@ -243,7 +242,7 @@ void SetupUpdate(not_null<Ui::VerticalLayout*> container) {
if (!Core::UpdaterDisabled()) {
Core::checkReadyUpdate();
}
App::restart();
Core::Restart();
});
}
@@ -599,7 +598,7 @@ void SetupANGLE(
Core::App().settings().setDisableOpenGL(nowDisabled);
Local::writeSettings();
}
App::restart();
Core::Restart();
});
controller->show(Box<Ui::ConfirmBox>(
tr::lng_settings_need_restart(tr::now),
@@ -638,7 +637,7 @@ void SetupOpenGL(
const auto confirmed = crl::guard(button, [=] {
Core::App().settings().setDisableOpenGL(!enabled);
Local::writeSettings();
App::restart();
Core::Restart();
});
const auto cancelled = crl::guard(button, [=] {
toggles->fire(!enabled);