Browse Source

Merge pull request #7849 from Morph1984/qt-frameless-window

main: Always remove the frameless window flag when restoring UI state
bunnei 4 năm trước cách đây
mục cha
commit
0456ed6b4e
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/yuzu/main.cpp

+ 2 - 0
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);