Skip to content

Commit

Permalink
Save current resource when changing resources
Browse files Browse the repository at this point in the history
Fixes #58
  • Loading branch information
nathanhoad committed Jul 6, 2022
1 parent 0ac1f5b commit fde5e64
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addons/dialogue_manager/views/main_view.gd
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ func build_open_menu() -> void:


func set_resource(value: DialogueResource) -> void:
apply_changes()

current_resource = value
if current_resource:
file_label.text = get_nice_file(current_resource.resource_path)
Expand Down

0 comments on commit fde5e64

Please sign in to comment.