2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45: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

@@ -37,9 +37,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "window/window_controller.h"
#include "window/window_session_controller.h"
#include "core/click_handler_types.h"
#include "core/application.h"
#include "base/call_delayed.h"
#include "facades.h"
#include "app.h"
#include "styles/style_settings.h"
#include "base/platform/base_platform_info.h"
@@ -230,7 +230,7 @@ void SetupInterfaceScale(
const auto confirmed = crl::guard(button, [=] {
cSetConfigScale(scale);
Local::writeSettings();
App::restart();
Core::Restart();
});
const auto cancelled = crl::guard(button, [=] {
base::call_delayed(