Skip to content

Commit 0e86b34

Browse files
committed
When querying for component names from a component manager, strip the service prefix from the response
1 parent 4a8ff51 commit 0e86b34

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

Lib/Shared/Volantis.Component/ComponentManager/ComponentManagerBase.ahk

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,19 @@ class ComponentManagerBase {
129129
}
130130

131131
Names() {
132-
return this.All(ContainerQuery.RESULT_TYPE_NAMES)
132+
names := []
133+
134+
for index, name in this.All(ContainerQuery.RESULT_TYPE_NAMES) {
135+
start := 0
136+
137+
if (this.servicePrefix) {
138+
start := StrLen(this.servicePrefix)+1
139+
}
140+
141+
names.Push(SubStr(name, start))
142+
}
143+
144+
return names
133145
}
134146

135147
Query(resultType := "") {

0 commit comments

Comments
 (0)