Skip to content
This repository was archived by the owner on Jul 13, 2025. It is now read-only.

Commit 1a8856a

Browse files
committed
Fixes for tag manager
1 parent 986fb67 commit 1a8856a

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/TagManager.lua

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ function TagManager:_watchFolder(folder: Folder)
185185

186186
for _, child in pairs(folder:GetChildren()) do
187187
if child:IsA("Configuration") then
188-
maid[instance] = self:_watchChild(child)
188+
maid[child] = self:_watchChild(child)
189189
end
190190
end
191191

@@ -252,9 +252,9 @@ function TagManager:_doUpdateStore()
252252
local tags: { Tag } = {}
253253
local groups: { [string]: boolean } = {}
254254
local sel = Selection:Get()
255-
local tagNamesSeen: { [string]: string } = {}
256255

257256
local function update(folder)
257+
local tagNamesSeen: { [string]: boolean } = {}
258258
for _, inst in pairs(folder:GetChildren()) do
259259
if not inst:IsA("Configuration") then
260260
continue
@@ -263,17 +263,16 @@ function TagManager:_doUpdateStore()
263263
if not self._gaveDuplicateWarningsFor[inst.Name] then
264264
warn(
265265
string.format(
266-
"Multiple tags in %s and %s are named %q, consider removing the duplicates.",
267-
tagNamesSeen[inst.Name],
268-
inst:GetFullName(),
266+
"Multiple tags in %s are named %q, consider removing the duplicates.",
267+
folder:GetFullName(),
269268
inst.Name
270269
)
271270
)
272271
self._gaveDuplicateWarningsFor[inst.Name] = true
273272
end
274273
continue
275274
end
276-
tagNamesSeen[inst.Name] = inst:GetFullName()
275+
tagNamesSeen[inst.Name] = true
277276

278277
local hasAny = false
279278
local missingAny = false

0 commit comments

Comments
 (0)