Skip to content

Commit ba9d29e

Browse files
committed
Fix segfault on editor close up
1 parent 1169196 commit ba9d29e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

editor/filesystem_dock.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,9 @@ void FileSystemDock::_notification(int p_what) {
353353

354354
} break;
355355
case NOTIFICATION_THEME_CHANGED: {
356-
_update_display_mode(true);
356+
if (tree->is_visible_in_tree()) {
357+
_update_display_mode(true);
358+
}
357359
} break;
358360
case EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED: {
359361
// Update icons

0 commit comments

Comments
 (0)