Browse Source

Merge pull request #8400 from Docteh/fullscreen_glitch

fix UI opening fullscreen after certain crashes
pull/15/merge
bunnei 4 years ago
committed by GitHub
parent
commit
af418eb666
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/yuzu/main.cpp

4
src/yuzu/main.cpp

@ -1015,6 +1015,10 @@ void GMainWindow::SetDefaultUIGeometry() {
void GMainWindow::RestoreUIState() {
setWindowFlags(windowFlags() & ~Qt::FramelessWindowHint);
restoreGeometry(UISettings::values.geometry);
// Work-around because the games list isn't supposed to be full screen
if (isFullScreen()) {
showNormal();
}
restoreState(UISettings::values.state);
render_window->setWindowFlags(render_window->windowFlags() & ~Qt::FramelessWindowHint);
render_window->restoreGeometry(UISettings::values.renderwindow_geometry);

Loading…
Cancel
Save