mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-22 05:45:46 +00:00
main: Always remove the frameless window flag when restoring UI state
For unknown reasons, this flag may persist after the application has been closed. Removing this flag when restoring the UI state ensures that a frameless window will not be shown on startup.
This commit is contained in:
parent
c955ee1a30
commit
6015bce1e9
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue