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

This commit is contained in:
Yuri Sizov 2023-05-24 14:22:03 +02:00
parent 094e88416a
commit f1b4c3d6e1

View file

@ -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;