mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Cmd+Q quit prevention in windowed media viewer.
This commit is contained in:
@@ -983,10 +983,11 @@ bool Application::preventsQuit(QuitReason reason) {
|
||||
|| uploadPreventsQuit()
|
||||
|| downloadPreventsQuit()) {
|
||||
return true;
|
||||
} else if (const auto window = activeWindow()) {
|
||||
if (window->widget()->isActive()) {
|
||||
return window->widget()->preventsQuit(reason);
|
||||
}
|
||||
} else if ((!_mediaView
|
||||
|| _mediaView->isHidden()
|
||||
|| !_mediaView->isFullScreen())
|
||||
&& Platform::PreventsQuit(reason)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user