1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 09:09:47 +00:00

fixed a bug

This commit is contained in:
Variable 2024-01-14 00:18:31 +05:00
parent 2cf374316a
commit e37c332222

View file

@ -130,7 +130,10 @@ func _on_reference_image_changed(index: int) -> void:
for b: Button in list_btn_group.get_buttons():
b.set_pressed_no_signal(false)
# Then we get the wanted button and we press it
list_btn_group.get_buttons()[index + 1].set_pressed_no_signal(true)
# NOTE: using list_btn_group.get_buttons()[index + 1] here was causing a bug that
# if you re-arrange by drag and drop, then click on a button, then button before it
# becomes selected instead of the clicked button
list.get_child(index + 1).set_pressed_no_signal(true)
func project_changed() -> void: