Browse Source

Fix a crash when hovering over "Favorites" in the FileSystem dock

Yuri Sizov 2 năm trước cách đây
mục cha
commit
f1b4c3d6e1
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      editor/filesystem_dock.cpp

+ 4 - 0
editor/filesystem_dock.cpp

@@ -2281,6 +2281,10 @@ void FileSystemDock::remove_resource_tooltip_plugin(const Ref<EditorResourceTool
 }
 
 Control *FileSystemDock::create_tooltip_for_path(const String &p_path) const {
+	if (p_path == "Favorites") {
+		// No tooltip for the "Favorites" group.
+		return nullptr;
+	}
 	if (DirAccess::exists(p_path)) {
 		// No tooltip for directory.
 		return nullptr;