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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user