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

@@ -21,7 +21,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "ui/text/text_utilities.h"
#include "core/file_utilities.h"
#include "core/click_handler_types.h"
#include "app.h"
#include "styles/style_layers.h"
namespace Lang {
@@ -548,7 +547,7 @@ void CloudManager::performSwitchToCustom() {
+ getValue(tr::lng_sure_save_language.base);
const auto change = [=] {
_langpack.switchToCustomFile(filePath);
App::restart();
Core::Restart();
};
Ui::show(
Box<Ui::ConfirmBox>(
@@ -595,7 +594,7 @@ void CloudManager::restartAfterSwitch() {
if (_langPackRequestId || _langPackBaseRequestId) {
_restartAfterSwitch = true;
} else {
App::restart();
Core::Restart();
}
}