Merge pull request #77435 from YuriSizov/editor-your-favorite-preview
Fix a crash when hovering over "Favorites" in the FileSystem dock
This commit is contained in:
commit
c36b1d5891
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue