Skip to content

Commit

Permalink
do not restore fullscreen state from saved geometry
Browse files Browse the repository at this point in the history
  • Loading branch information
RSDuck committed Oct 6, 2024
1 parent aa443c8 commit 30441fe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/frontend/qt_sdl/Window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
#include "EmuInstance.h"
#include "ArchiveUtil.h"
#include "CameraManager.h"
#include "Window.h"

using namespace melonDS;

Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit 30441fe

Please sign in to comment.