Skip to content

Commit f3ea18b

Browse files
committed
Fixed an error when trying to open the config UI in Midnight
1 parent 79e545f commit f3ea18b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

NoAutoclose.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,12 +480,11 @@ function ns:initOptions()
480480
end);
481481

482482
local category, _ = Settings.RegisterCanvasLayoutCategory(panel, panel.name);
483-
category.ID = panel.name;
484483
Settings.RegisterAddOnCategory(category);
485484

486485
SLASH_NOAUTOCLOSE1 = '/noautoclose';
487486
SLASH_NOAUTOCLOSE2 = '/nac';
488-
SlashCmdList['NOAUTOCLOSE'] = function() Settings.OpenToCategory(panel.name); end;
487+
SlashCmdList['NOAUTOCLOSE'] = function() Settings.OpenToCategory(category:GetID()); end;
489488
end
490489

491490
function ns:GetMoverFrame(onMoveCallback)

0 commit comments

Comments
 (0)