Skip to content

Commit

Permalink
Small bug-fix after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Jowan-Spooner committed Jul 26, 2024
1 parent 5673960 commit 0f40cfa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions addons/dialogic/Editor/Common/sidebar.gd
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ func update_content_list(list: PackedStringArray) -> void:
DialogicResourceUtil.set_label_cache(label_directory)


func remove_item_from_list(item) -> void:
func remove_item_from_list(item:TreeItem) -> void:
var new_list := []
for entry in DialogicUtil.get_editor_setting("last_resources", []):
if entry != item.get_metadata(0):
Expand All @@ -298,10 +298,10 @@ func _on_right_click_menu_id_pressed(id: int) -> void:
)
4: # COPY IDENTIFIER
DisplayServer.clipboard_set(
DialogicResourceUtil.get_unique_identifier(
%ResourcesList.get_item_metadata(%RightClickMenu.get_meta("item_clicked"))
)
)
DialogicResourceUtil.get_unique_identifier(
%RightClickMenu.get_meta("item_clicked").get_metadata(0)
)
)


func _sort_by_item_text(a: ResourceListItem, b: ResourceListItem) -> bool:
Expand Down

0 comments on commit 0f40cfa

Please sign in to comment.