mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 08:23:29 +00:00
Fixed disconnecting not connected signal
This commit is contained in:
parent
7d710a745e
commit
a245bab78d
5 changed files with 15 additions and 6 deletions
|
@ -95,7 +95,9 @@ void EditorDirDialog::_notification(int p_what) {
|
|||
}
|
||||
|
||||
if (p_what == NOTIFICATION_EXIT_TREE) {
|
||||
EditorFileSystem::get_singleton()->disconnect("filesystem_changed", this, "reload");
|
||||
if (EditorFileSystem::get_singleton()->is_connected("filesystem_changed", this, "reload")) {
|
||||
EditorFileSystem::get_singleton()->disconnect("filesystem_changed", this, "reload");
|
||||
}
|
||||
}
|
||||
|
||||
if (p_what == NOTIFICATION_VISIBILITY_CHANGED) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue