You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Fixed disconnecting not connected signal
This commit is contained in:
@@ -397,8 +397,9 @@ void VersionControlEditorPlugin::clear_stage_area() {
|
||||
void VersionControlEditorPlugin::shut_down() {
|
||||
|
||||
if (EditorVCSInterface::get_singleton()) {
|
||||
|
||||
EditorFileSystem::get_singleton()->disconnect("filesystem_changed", this, "_refresh_stage_area");
|
||||
if (EditorFileSystem::get_singleton()->is_connected("filesystem_changed", this, "_refresh_stage_area")) {
|
||||
EditorFileSystem::get_singleton()->disconnect("filesystem_changed", this, "_refresh_stage_area");
|
||||
}
|
||||
EditorVCSInterface::get_singleton()->shut_down();
|
||||
memdelete(EditorVCSInterface::get_singleton());
|
||||
EditorVCSInterface::set_singleton(NULL);
|
||||
|
||||
Reference in New Issue
Block a user