Skip to content

Commit

Permalink
Fix window centering on first launch
Browse files Browse the repository at this point in the history
  • Loading branch information
qrrk committed Feb 26, 2022
1 parent 0c7448e commit 52a6d28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/window_geometry.gd
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func recover_window_state() -> void:
var state: Dictionary = _settings.read("window_state")

if state.empty():
OS.center_window()
OS.call_deferred("center_window")
return

base_size = Vector2(state["size_x"] as float, state["size_y"] as float)
Expand Down

0 comments on commit 52a6d28

Please sign in to comment.