diff options
author | bunnei <bunneidev@gmail.com> | 2022-02-05 23:18:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-05 23:18:48 +0100 |
commit | 0456ed6b4e96d13aa5e150cd6f8683204b94bd90 (patch) | |
tree | f5c6a577d73cea0719c07e338bcb7645bb73ac4d /src | |
parent | Merge pull request #7842 from german77/vibration_test (diff) | |
parent | main: Always remove the frameless window flag when restoring UI state (diff) | |
download | yuzu-0456ed6b4e96d13aa5e150cd6f8683204b94bd90.tar yuzu-0456ed6b4e96d13aa5e150cd6f8683204b94bd90.tar.gz yuzu-0456ed6b4e96d13aa5e150cd6f8683204b94bd90.tar.bz2 yuzu-0456ed6b4e96d13aa5e150cd6f8683204b94bd90.tar.lz yuzu-0456ed6b4e96d13aa5e150cd6f8683204b94bd90.tar.xz yuzu-0456ed6b4e96d13aa5e150cd6f8683204b94bd90.tar.zst yuzu-0456ed6b4e96d13aa5e150cd6f8683204b94bd90.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/yuzu/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 556d2cdb3..c788db12d 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -1052,8 +1052,10 @@ void GMainWindow::SetDefaultUIGeometry() { } void GMainWindow::RestoreUIState() { + setWindowFlags(windowFlags() & ~Qt::FramelessWindowHint); restoreGeometry(UISettings::values.geometry); restoreState(UISettings::values.state); + render_window->setWindowFlags(render_window->windowFlags() & ~Qt::FramelessWindowHint); render_window->restoreGeometry(UISettings::values.renderwindow_geometry); #if MICROPROFILE_ENABLED microProfileDialog->restoreGeometry(UISettings::values.microprofile_geometry); |