Fix the returned controls of EditorHelpBitTooltip::show_tooltip() were not freed in ScriptTextEditor

The returned control is an orphan node, which is to make the standard tooltip invisible.
This commit is contained in:
风青山
2025-11-23 21:42:48 +08:00
parent 235a32ad11
commit 81f727b6dd
6 changed files with 12 additions and 9 deletions

View File

@@ -2336,7 +2336,7 @@ ThemeTypeDialog::ThemeTypeDialog() {
///////////////////////
Control *ThemeItemLabel::make_custom_tooltip(const String &p_text) const {
return EditorHelpBitTooltip::show_tooltip(const_cast<ThemeItemLabel *>(this), p_text);
return EditorHelpBitTooltip::make_tooltip(const_cast<ThemeItemLabel *>(this), p_text);
}
VBoxContainer *ThemeTypeEditor::_create_item_list(Theme::DataType p_data_type) {