workaround for qt not returning to maximized when exiting full screen #171

This commit is contained in:
itsmattkc
2018-12-21 21:56:07 +11:00
parent e669949ec6
commit 1ed857483d
+1
View File
@@ -833,6 +833,7 @@ void MainWindow::on_actionClear_In_Out_triggered() {
void MainWindow::toggle_full_screen() {
if (windowState() == Qt::WindowFullScreen) {
setWindowState(Qt::WindowNoState); // seems to be necessary for it to return to Maximized correctly on Linux
setWindowState(Qt::WindowMaximized);
} else {
setWindowState(Qt::WindowFullScreen);