2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16: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

@@ -32,7 +32,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "main/main_domain.h"
#include "ui/text/text_utilities.h"
#include "facades.h"
#include "app.h"
#include <QtGui/QWindow>
@@ -174,7 +173,7 @@ System::SkipState System::computeSkipState(
bool showForMuted) const {
const auto history = item->history();
const auto notifyBy = item->specialNotificationPeer();
if (App::quitting()) {
if (Core::Quitting()) {
return { SkipState::Skip };
} else if (!Core::App().settings().notifyFromAll()
&& &history->session().account() != &Core::App().domain().active()) {
@@ -432,7 +431,7 @@ void System::showGrouped() {
void System::showNext() {
Expects(_manager != nullptr);
if (App::quitting()) {
if (Core::Quitting()) {
return;
}