From 52a6d280a2c854ff2d19c2fe8cf48099eda4b480 Mon Sep 17 00:00:00 2001 From: qrrk <19731636+qrrk@users.noreply.github.com> Date: Sat, 26 Feb 2022 20:23:52 +0300 Subject: [PATCH] Fix window centering on first launch --- scripts/window_geometry.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/window_geometry.gd b/scripts/window_geometry.gd index d53612c7..188977cb 100644 --- a/scripts/window_geometry.gd +++ b/scripts/window_geometry.gd @@ -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)