Language and theme checkboxes are now radio buttons

This commit is contained in:
OverloadedOrama 2020-05-31 23:48:06 +03:00
parent 71fa2795b1
commit 15ef00bf46
4 changed files with 33 additions and 10 deletions

View file

@ -16,9 +16,7 @@ func _ready() -> void:
func _on_Theme_pressed(index : int) -> void:
for child in get_children():
if child is Button:
child.pressed = child.get_index() == index
get_child(index).pressed = true
change_theme(index)
Global.config_cache.set_value("preferences", "theme", index)