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

Have the Dark theme button pressed by default if the user hasn't saved any preferences

This commit is contained in:
OverloadedOrama 2020-01-07 02:37:47 +02:00
parent d72c79b349
commit ff3b5e321b

View file

@ -19,6 +19,9 @@ func _ready() -> void:
var theme_id = Global.config_cache.get_value("preferences", "theme")
change_theme(theme_id)
themes.get_child(theme_id + 1).pressed = true
else:
change_theme(0)
themes.get_child(1).pressed = true
func _on_PreferencesDialog_about_to_show() -> void:
var root := tree.create_item()