diff options
author | kobewi <kobewi4e@gmail.com> | 2024-01-30 21:33:31 +0100 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2024-01-30 21:33:31 +0100 |
commit | 4ad74a5663d1e38f4e95159ec1caa53bae3b8799 (patch) | |
tree | e7aee6b0393f69fff4fe3340e53656640a8307f3 /editor/filesystem_dock.cpp | |
parent | 313f623b9d102cc8c411ae7cab9518f98c2f87f2 (diff) | |
download | redot-engine-4ad74a5663d1e38f4e95159ec1caa53bae3b8799.tar.gz |
Some editor code cleanup
Diffstat (limited to 'editor/filesystem_dock.cpp')
-rw-r--r-- | editor/filesystem_dock.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp index facc3c3bb5..02ae15b80d 100644 --- a/editor/filesystem_dock.cpp +++ b/editor/filesystem_dock.cpp @@ -495,12 +495,7 @@ void FileSystemDock::_update_display_mode(bool p_force) { void FileSystemDock::_notification(int p_what) { switch (p_what) { - case NOTIFICATION_ENTER_TREE: { - if (initialized) { - return; - } - initialized = true; - + case NOTIFICATION_READY: { EditorFeatureProfileManager::get_singleton()->connect("current_feature_profile_changed", callable_mp(this, &FileSystemDock::_feature_profile_changed)); EditorFileSystem::get_singleton()->connect("filesystem_changed", callable_mp(this, &FileSystemDock::_fs_changed)); EditorResourcePreview::get_singleton()->connect("preview_invalidated", callable_mp(this, &FileSystemDock::_preview_invalidated)); |