summaryrefslogtreecommitdiffstats
path: root/editor/create_dialog.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-12-05 18:07:20 +0100
committerRémi Verschelde <rverschelde@gmail.com>2022-12-05 18:07:20 +0100
commit3673eb700150e29e19aba62ad5499510fd9996d5 (patch)
tree89edc80ef5011f4591d4a725e0cb5c94d07300f5 /editor/create_dialog.cpp
parent14f23df1a3c78ad53af61d14b57146b57c51e01b (diff)
parent6a3df02956ea4659ebfc0302c878041e97af89e0 (diff)
downloadredot-engine-3673eb700150e29e19aba62ad5499510fd9996d5.tar.gz
Merge pull request #67553 from Sauermann/fix-new-node-dialog-description
Fix Updating New Node Dialog Description of Custom Nodes
Diffstat (limited to 'editor/create_dialog.cpp')
-rw-r--r--editor/create_dialog.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/create_dialog.cpp b/editor/create_dialog.cpp
index 785476d75b..2adab089e4 100644
--- a/editor/create_dialog.cpp
+++ b/editor/create_dialog.cpp
@@ -275,7 +275,8 @@ void CreateDialog::_configure_search_option_item(TreeItem *r_item, const String
r_item->set_text(0, "\"" + p_type + "\"");
} else if (script_type) {
r_item->set_metadata(0, p_type);
- r_item->set_text(0, p_type + " (" + ScriptServer::get_global_class_path(p_type).get_file() + ")");
+ r_item->set_text(0, p_type);
+ r_item->set_suffix(0, "(" + ScriptServer::get_global_class_path(p_type).get_file() + ")");
} else {
r_item->set_metadata(0, custom_type_parents[p_type]);
r_item->set_text(0, p_type);