Fixing issue with object's execution category

This commit is contained in:
Adsooi 2024-09-16 23:33:59 +02:00
parent 7e0262e4fe
commit ef14db8bbb
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160

View file

@ -474,7 +474,7 @@ Item {
itemSelected: parent.itemSelected
categoryItems: Modules.Objects.getObjectsName("ExecutableObject").filter(obj => obj != self)
autocompleteGenerator: (item) => {return {
'text': item, 'annotation': Modules.Objects.currentObjectsByName[item] == null ? '' : Objects.currentObjectsByName[item].constructor.displayType(),
'text': item, 'annotation': Modules.Objects.currentObjectsByName[item] == null ? '' : Modules.Objects.currentObjectsByName[item].constructor.displayType(),
'autocomplete': item+'()', 'cursorFinalOffset': -1
}}
baseText: parent.visible ? parent.currentToken.value : ""