fix: harden recovery flow and clean diagnostics
This commit is contained in:
parent
0158b0215f
commit
ff78710303
64 changed files with 1163 additions and 418 deletions
|
|
@ -100,7 +100,11 @@ func popup_file_dialog(dialog: FileDialog) -> void:
|
|||
# clamp guarantees the embedded window cannot escape the physical screen.
|
||||
dialog.size = available_size
|
||||
if dialog.get_viewport().gui_embed_subwindows:
|
||||
dialog.position = (host_size - available_size) / 2
|
||||
var centered_position := Vector2i(
|
||||
floori(float(host_size.x - available_size.x) / 2.0),
|
||||
floori(float(host_size.y - available_size.y) / 2.0),
|
||||
)
|
||||
dialog.position = centered_position
|
||||
_finalize_compact_file_dialog.call_deferred(
|
||||
dialog, host_size, available_size
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue