From f0c0176080d51e7588a6d731ba3467f703cf591d Mon Sep 17 00:00:00 2001 From: OverloadedOrama <35376950+OverloadedOrama@users.noreply.github.com> Date: Wed, 19 Feb 2020 01:13:29 +0200 Subject: [PATCH] Fixed issue where splash screen was appearing even though it should not --- Scripts/Main.gd | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Scripts/Main.gd b/Scripts/Main.gd index 26fd54027..9d7b2d0ec 100644 --- a/Scripts/Main.gd +++ b/Scripts/Main.gd @@ -172,12 +172,12 @@ func _ready() -> void: if not Global.config_cache.has_section_key("preferences", "startup"): Global.config_cache.set_value("preferences", "startup", true) - if not Global.config_cache.get_value("preferences", "startup"): - $SplashDialog.hide() - - # Wait for the window to adjust itself, so the popup is correctly centered - yield(get_tree().create_timer(0.01), "timeout") - $SplashDialog.popup_centered() # Splash screen + if Global.config_cache.get_value("preferences", "startup"): + # Wait for the window to adjust itself, so the popup is correctly centered + yield(get_tree().create_timer(0.01), "timeout") + $SplashDialog.popup_centered() # Splash screen + else: + Global.can_draw = true func _input(event : InputEvent) -> void: Global.left_cursor.position = get_global_mouse_position() + Vector2(-32, 32)