mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-27 16:59:21 +00:00
Avoid to reduce window if it is already maximized
(cherry picked from commit 74f50933fd)
This commit is contained in:
parent
efc2e63ec3
commit
8b0270dd2a
1 changed files with 5 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue