mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-22 10:51:50 -05:00
Merge pull request #8400 from Docteh/fullscreen_glitch
fix UI opening fullscreen after certain crashes
This commit is contained in:
commit
af418eb666
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue