2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

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

main: Always remove the frameless window flag when restoring UI state
This commit is contained in:
bunnei 2022-02-05 15:18:48 -07:00 committed by GitHub
commit 0456ed6b4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1052,8 +1052,10 @@ void GMainWindow::SetDefaultUIGeometry() {
} }
void GMainWindow::RestoreUIState() { void GMainWindow::RestoreUIState() {
setWindowFlags(windowFlags() & ~Qt::FramelessWindowHint);
restoreGeometry(UISettings::values.geometry); restoreGeometry(UISettings::values.geometry);
restoreState(UISettings::values.state); restoreState(UISettings::values.state);
render_window->setWindowFlags(render_window->windowFlags() & ~Qt::FramelessWindowHint);
render_window->restoreGeometry(UISettings::values.renderwindow_geometry); render_window->restoreGeometry(UISettings::values.renderwindow_geometry);
#if MICROPROFILE_ENABLED #if MICROPROFILE_ENABLED
microProfileDialog->restoreGeometry(UISettings::values.microprofile_geometry); microProfileDialog->restoreGeometry(UISettings::values.microprofile_geometry);