Skip to content

Commit db7166a

Browse files
committed
Fix adding RetroArch core button being disabled
1 parent fc6cceb commit db7166a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scenes/config/settings/system/RetroArchConfig.gd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func start(cores: Array, existing: Array):
3737
n_intro_lbl.grab_focus()
3838
else:
3939
n_core_options.grab_focus()
40-
n_add_core.disabled = n_core_options.get_child_count() == 0
40+
n_add_core.disabled = n_core_options.item_count == 0
4141

4242
func reset():
4343
n_core_options.clear()
@@ -81,10 +81,10 @@ func _on_AddCore_pressed():
8181
var idx : int = n_core_options.get_item_index(n_core_options.get_selected_id())
8282
n_core_options.remove_item(idx)
8383
idx -= 1
84-
if idx < 0 and n_core_options.get_item_count() > 0:
84+
if idx < 0 and n_core_options.item_count > 0:
8585
idx = 0
8686
n_core_options.selected = idx
87-
n_add_core.disabled = n_core_options.get_item_count() == 0
87+
n_add_core.disabled = n_core_options.item_count == 0
8888

8989
func tts_tree_item_text(item: TreeItem, tree: Tree) -> String:
9090
if tree == n_cores:

0 commit comments

Comments
 (0)