Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix loading layout with floating dock in single window mode and fix restore_windows_on_load #99904

Merged
merged 1 commit into from
Dec 30, 2024

Conversation

kitbdev
Copy link
Contributor

@kitbdev kitbdev commented Dec 1, 2024

In single window mode, the dock will instead be docked and not floating.

To reproduce:

  1. In multi-window mode, save a layout with a floating dock.
  2. Change to single window mode.
  3. Load that layout.

It causes the UI to be messed up:

image

It also prints errors like: editor/window_wrapper.cpp:222 - Condition "!is_window_available()" is true.

Also fixes restore_windows_on_load preventing loading floating docks in a layout when false.
This setting should only affect the behavior when the editor is opened, and should not prevent floating windows when loading a layout (in multi-window mode).
To reproduce, disable the setting and load a layout with a floating dock.

Fix restore_windows_on_load setting preventing loading layouts with floating docks
@kitbdev kitbdev requested review from a team as code owners December 1, 2024 19:09
@AThousandShips AThousandShips added this to the 4.4 milestone Dec 2, 2024
@Repiteo Repiteo merged commit c83706f into godotengine:master Dec 30, 2024
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Dec 30, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants