mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-06-28 01:49:42 -06:00
do not restore fullscreen state from saved geometry
This commit is contained in:
@ -81,6 +81,7 @@
|
|||||||
#include "EmuInstance.h"
|
#include "EmuInstance.h"
|
||||||
#include "ArchiveUtil.h"
|
#include "ArchiveUtil.h"
|
||||||
#include "CameraManager.h"
|
#include "CameraManager.h"
|
||||||
|
#include "Window.h"
|
||||||
|
|
||||||
using namespace melonDS;
|
using namespace melonDS;
|
||||||
|
|
||||||
@ -666,6 +667,8 @@ MainWindow::MainWindow(int id, EmuInstance* inst, QWidget* parent) :
|
|||||||
QByteArray dec = QByteArray::fromBase64(raw, QByteArray::Base64Encoding | QByteArray::AbortOnBase64DecodingErrors);
|
QByteArray dec = QByteArray::fromBase64(raw, QByteArray::Base64Encoding | QByteArray::AbortOnBase64DecodingErrors);
|
||||||
if (!dec.isEmpty())
|
if (!dec.isEmpty())
|
||||||
restoreGeometry(dec);
|
restoreGeometry(dec);
|
||||||
|
// if the window was closed in fullscreen do not restore this
|
||||||
|
setWindowState(windowState() & ~Qt::WindowFullScreen);
|
||||||
}
|
}
|
||||||
show();
|
show();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user