2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +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

@@ -27,6 +27,7 @@ class PlainShadow;
namespace Core {
struct WindowPosition;
enum class QuitReason;
} // namespace Core
namespace Window {
@@ -137,6 +138,10 @@ public:
updateGlobalMenuHook();
}
[[nodiscard]] virtual bool preventsQuit(Core::QuitReason reason) {
return false;
}
protected:
void leaveEventHook(QEvent *e) override;