do not restore fullscreen state from saved geometry

This commit is contained in:
RSDuck 2024-10-06 18:59:19 +02:00
parent aa443c8846
commit 30441fed24
1 changed files with 3 additions and 0 deletions

View File

@ -81,6 +81,7 @@
#include "EmuInstance.h"
#include "ArchiveUtil.h"
#include "CameraManager.h"
#include "Window.h"
using namespace melonDS;
@ -666,6 +667,8 @@ MainWindow::MainWindow(int id, EmuInstance* inst, QWidget* parent) :
QByteArray dec = QByteArray::fromBase64(raw, QByteArray::Base64Encoding | QByteArray::AbortOnBase64DecodingErrors);
if (!dec.isEmpty())
restoreGeometry(dec);
// if the window was closed in fullscreen do not restore this
setWindowState(windowState() & ~Qt::WindowFullScreen);
}
show();