mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 15:43:55 +02:00
Fix quit from fullscreen on macOS.
This commit is contained in:
parent
87e4bb1059
commit
db23485fa2
1 changed files with 1 additions and 1 deletions
|
@ -215,7 +215,7 @@ void Sandbox::setupScreenScale() {
|
||||||
Sandbox::~Sandbox() = default;
|
Sandbox::~Sandbox() = default;
|
||||||
|
|
||||||
bool Sandbox::event(QEvent *e) {
|
bool Sandbox::event(QEvent *e) {
|
||||||
if (e->type() == QEvent::Close) {
|
if (e->type() == QEvent::Close || e->type() == QEvent::Quit) {
|
||||||
App::quit();
|
App::quit();
|
||||||
}
|
}
|
||||||
return QApplication::event(e);
|
return QApplication::event(e);
|
||||||
|
|
Loading…
Add table
Reference in a new issue