summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-02-05 23:18:48 +0100
committerGitHub <noreply@github.com>2022-02-05 23:18:48 +0100
commit0456ed6b4e96d13aa5e150cd6f8683204b94bd90 (patch)
treef5c6a577d73cea0719c07e338bcb7645bb73ac4d /src
parentMerge pull request #7842 from german77/vibration_test (diff)
parentmain: Always remove the frameless window flag when restoring UI state (diff)
downloadyuzu-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.cpp2
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);