possible fullscreen fix

This commit is contained in:
Wizzard 2023-07-12 15:51:38 -04:00
parent 4ab61017db
commit 65b7556523
1 changed files with 3 additions and 0 deletions

View File

@ -52,6 +52,9 @@ void MainWindow::fullScreenRequested(
fullScreenRequest.accept(); fullScreenRequest.accept();
if (fullScreenRequest.toggleOn()) { if (fullScreenRequest.toggleOn()) {
m_wasMaximized = isMaximized(); m_wasMaximized = isMaximized();
if (!m_wasMaximized) {
showNormal();
}
showFullScreen(); showFullScreen();
} else { } else {
m_wasMaximized ? showMaximized() : showNormal(); m_wasMaximized ? showMaximized() : showNormal();