Avoid to reduce window if it is already maximized

(cherry picked from commit 74f50933fd)
This commit is contained in:
Julien Wadel 2020-07-05 09:55:34 +00:00
parent efc2e63ec3
commit 8b0270dd2a

View file

@ -405,7 +405,11 @@ void App::smartShowWindow (QQuickWindow *window) {
if (!window)
return;
window->setVisible(true);
window->show();// Force show, maybe redundant with setVisible
// Force show, maybe redundant with setVisible
if(window->visibility() == QWindow::Maximized)// Avoid to change visibility mode
window->showMaximized();
else
window->show();
window->raise();// Raise ensure to get focus on Mac
window->requestActivate();
}