1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-02-20 12:33:14 +00:00

Update "Don't show again" button's pressed status based on what the user has selected

This commit is contained in:
OverloadedOrama 2020-01-06 00:15:16 +02:00
parent 46e4ea15ad
commit b0e9870d54

View file

@ -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")