Skip to content

Commit

Permalink
GH-703 Update FileSystemDock on file save as
Browse files Browse the repository at this point in the history
  • Loading branch information
Naros committed Aug 11, 2024
1 parent 9ce4893 commit 35d0419
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/editor/editor_panel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@

#include <godot_cpp/classes/display_server.hpp>
#include <godot_cpp/classes/editor_settings.hpp>
#include <godot_cpp/classes/editor_file_system.hpp>
#include <godot_cpp/classes/engine.hpp>
#include <godot_cpp/classes/h_box_container.hpp>
#include <godot_cpp/classes/h_split_container.hpp>
Expand Down Expand Up @@ -430,6 +431,8 @@ void OrchestratorEditorPanel::_save_script_file(const String& p_file_name)
_update_file_list();
}
}

EditorInterface::get_singleton()->get_resource_filesystem()->update_file(p_file_name);
}

void OrchestratorEditorPanel::_save_script()
Expand Down

0 comments on commit 35d0419

Please sign in to comment.