mirror of
https://github.com/Relintai/godot-resources-as-sheets-plugin.git
synced 2025-04-08 17:41:50 +02:00
commit
c4b5733092
@ -95,12 +95,7 @@ func display_folder(folderpath : String, sort_by : String = "", sort_reverse : b
|
||||
current_path = folderpath
|
||||
node_columns.update()
|
||||
|
||||
await get_tree().create_timer(0.25).timeout
|
||||
if node_table_root.get_child_count() == 0:
|
||||
display_folder(folderpath, sort_by, sort_reverse, force_rebuild)
|
||||
|
||||
else:
|
||||
emit_signal("grid_updated")
|
||||
emit_signal("grid_updated")
|
||||
|
||||
|
||||
func refresh(force_rebuild : bool = true):
|
||||
|
@ -39,6 +39,8 @@ func _on_grid_updated():
|
||||
var sort_type = node_editor_view_root.column_types[node_editor_view_root.columns.find(sort_property)]
|
||||
var property_values = []
|
||||
property_values.resize(page_count)
|
||||
if(node_editor_view_root.rows.size() == 0):
|
||||
return
|
||||
for i in page_count:
|
||||
property_values[i] = node_editor_view_root.rows[i * rows_per_page].get(sort_property)
|
||||
|
||||
@ -96,6 +98,7 @@ func _on_button_pressed(button):
|
||||
|
||||
func _on_LineEdit_value_changed(value):
|
||||
rows_per_page = value
|
||||
current_page = 0
|
||||
_update_view()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user