mirror of
https://github.com/lightsoutgames/godot-accessibility.git
synced 2024-11-22 11:55:56 +00:00
When setting up initial tree selection, don't render the node unless it is focused.
This commit is contained in:
parent
5a38aac4a9
commit
18943786a9
|
@ -250,7 +250,8 @@ func tree_item_selected():
|
||||||
if node.select_mode == Tree.SELECT_MULTI:
|
if node.select_mode == Tree.SELECT_MULTI:
|
||||||
cell.select(0)
|
cell.select(0)
|
||||||
tree_deselect_all_but(cell, node.get_root())
|
tree_deselect_all_but(cell, node.get_root())
|
||||||
tree_item_render()
|
if node.has_focus():
|
||||||
|
tree_item_render()
|
||||||
prev_selected_cell = cell
|
prev_selected_cell = cell
|
||||||
else:
|
else:
|
||||||
var tokens = PoolStringArray([])
|
var tokens = PoolStringArray([])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user