From b0e9870d546b2a6606b2d3122db710769b9fb2f9 Mon Sep 17 00:00:00 2001 From: OverloadedOrama <35376950+OverloadedOrama@users.noreply.github.com> Date: Mon, 6 Jan 2020 00:15:16 +0200 Subject: [PATCH] Update "Don't show again" button's pressed status based on what the user has selected --- Scripts/Dialogs/SplashDialog.gd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Scripts/Dialogs/SplashDialog.gd b/Scripts/Dialogs/SplashDialog.gd index 64329ea09..82d823ab7 100644 --- a/Scripts/Dialogs/SplashDialog.gd +++ b/Scripts/Dialogs/SplashDialog.gd @@ -6,6 +6,8 @@ onready var show_on_startup_button : CheckBox = $Contents/BottomHboxContainer/Sh onready var developed_by_label : Label = $Contents/BottomHboxContainer/VBoxContainer/DevelopedBy func _on_SplashDialog_about_to_show() -> void: + if Global.config_cache.has_section_key("preferences", "startup"): + show_on_startup_button.pressed = !Global.config_cache.get_value("preferences", "startup") var current_version : String = ProjectSettings.get_setting("application/config/Version") window_title = "Pixelorama" + " " + current_version changes_label.text = current_version + " " + tr("Changes")