Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Jowan-Spooner committed May 23, 2024
1 parent d273522 commit 11a1a41
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions addons/dialogic/Editor/editors_manager.gd
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func _ready() -> void:

find_parent('EditorView').plugin_reference.get_editor_interface().get_file_system_dock().files_moved.connect(_on_file_moved)
find_parent('EditorView').plugin_reference.get_editor_interface().get_file_system_dock().file_removed.connect(_on_file_removed)

hsplit.set("theme_override_constants/separation", get_theme_constant("base_margin", "Editor") * DialogicUtil.get_editor_scale())


Expand Down Expand Up @@ -209,7 +209,8 @@ func _on_add_resource_dialog_accepted(path:String, callable:Callable) -> void:

## Called by the plugin.gd script on CTRL+S or Debug Game start
func save_current_resource() -> void:
current_editor._save()
if current_editor:
current_editor._save()


## Change the resource state
Expand Down

0 comments on commit 11a1a41

Please sign in to comment.