mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56:34 +01:00
Use setWindowState to toggle fullscreen mode
Use setWindowState instead of showNormal() / showFullScreen() as that may cause issues in some cases.
This commit is contained in:
parent
4cb62b73fb
commit
c12e473ab4
@ -788,9 +788,9 @@ void BrowserWindow::toggleFullScreen()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (isFullScreen())
|
if (isFullScreen())
|
||||||
showNormal();
|
setWindowState(windowState() & ~Qt::WindowFullScreen);
|
||||||
else
|
else
|
||||||
showFullScreen();
|
setWindowState(windowState() | Qt::WindowFullScreen);
|
||||||
}
|
}
|
||||||
|
|
||||||
void BrowserWindow::enterHtmlFullScreen()
|
void BrowserWindow::enterHtmlFullScreen()
|
||||||
|
Loading…
Reference in New Issue
Block a user