reverted maximized window workaround

This commit is contained in:
itsmattkc
2019-01-19 10:24:32 +11:00
parent 20f4b8d4c7
commit 5cc02956f3
4 changed files with 27 additions and 27 deletions
+8 -8
View File
@@ -229,7 +229,7 @@ MainWindow::MainWindow(QWidget *parent, const QString &an) :
setup_layout(false);
init_audio();
init_audio();
}
MainWindow::~MainWindow() {
@@ -1028,18 +1028,18 @@ void MainWindow::paintEvent(QPaintEvent *event) {
QTimer::singleShot(10, this, SLOT(load_with_launch()));
enable_launch_with_project = false;
}
if (!demoNoticeShown) {
if (!demoNoticeShown) {
#ifndef QT_DEBUG
DemoNotice* d = new DemoNotice(this);
d->open();
#endif
if (windowState() != Qt::WindowFullScreen) {
// workaround for setting to maximized - on some systems, setting
// to maximized doesn't work until after the paintEvent
setWindowState(Qt::WindowMaximized);
}
/*if (windowState() != Qt::WindowFullScreen) {
// workaround for setting to maximized - on some systems, setting
// to maximized doesn't work until after the paintEvent
setWindowState(Qt::WindowMaximized);
}*/
demoNoticeShown = true;
demoNoticeShown = true;
}
}