Skip to content

Commit

Permalink
Merge pull request #2444 from salianifo/small-fixes
Browse files Browse the repository at this point in the history
Remove stray print statment, fix extension creator mode
  • Loading branch information
zaknafean authored Oct 16, 2024
2 parents 11de41c + 02958bd commit ce057b7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion addons/dialogic/Editor/Common/sidebar.gd
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,6 @@ func update_resource_list(resources_list: PackedStringArray = []) -> void:

# Sort the folder names by their folder name (not by the full path)
var sorted_dir_keys := unique_folder_names.keys()
print(sorted_dir_keys)
sorted_dir_keys.sort_custom(
func(x, y):
return x.get_slice("/", x.get_slice_count("/")-1) < y.get_slice("/", y.get_slice_count("/")-1)
Expand Down
2 changes: 1 addition & 1 deletion addons/dialogic/Editor/Settings/settings_general.gd
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func _on_submit_extension_button_pressed() -> void:

var file: FileAccess
var indexer_content := "@tool\nextends DialogicIndexer\n\n"
if mode != 1: # don't add event in Subsystem Only mode
if mode != 2: # don't add event in Subsystem Only mode
indexer_content += """func _get_events() -> Array:
return [this_folder.path_join('event_"""+%NameEdit.text.to_snake_case()+""".gd')]\n\n"""
file = FileAccess.open(extensions_folder.path_join('event_'+%NameEdit.text.to_snake_case()+'.gd'), FileAccess.WRITE)
Expand Down

0 comments on commit ce057b7

Please sign in to comment.