You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Fix a crash when hovering over "Favorites" in the FileSystem dock
This commit is contained in:
@@ -2281,6 +2281,10 @@ void FileSystemDock::remove_resource_tooltip_plugin(const Ref<EditorResourceTool
|
|||||||
}
|
}
|
||||||
|
|
||||||
Control *FileSystemDock::create_tooltip_for_path(const String &p_path) const {
|
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)) {
|
if (DirAccess::exists(p_path)) {
|
||||||
// No tooltip for directory.
|
// No tooltip for directory.
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|||||||
Reference in New Issue
Block a user