mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-02-07 15:08:24 +00:00
Avoid to reduce window if it is already maximized
This commit is contained in:
parent
c273d88963
commit
74f50933fd
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