Skip to content

Commit aeff519

Browse files
committed
Fixed an error when trying to open the config UI in Midnight
1 parent 09a1649 commit aeff519

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

libs/embeds.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
2-
https://raw.githubusercontent.com/Meorawr/wow-ui-schema/main/UI.xsd">
2+
https://raw.githubusercontent.com/Gethe/wow-ui-source/refs/heads/live/Interface/AddOns/Blizzard_SharedXML/UI.xsd">
33
<Script file="LibStub\LibStub.lua"/>
44
<Include file="CallbackHandler-1.0\CallbackHandler-1.0.xml"/>
55
<Include file="AceAddon-3.0\AceAddon-3.0.xml"/>

main.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ function NAM:OnInitialize()
152152

153153
return
154154
end
155-
Settings.OpenToCategory(self.configName)
155+
Settings.OpenToCategory(self.categoryID)
156156
end
157157
end
158158

@@ -162,7 +162,8 @@ function NAM:RegisterOptions()
162162
if not initialized then
163163
initialized = true
164164
LibStub("AceConfig-3.0"):RegisterOptionsTable(self.configName, function() return self:GetOptionsTable() end)
165-
LibStub("AceConfigDialog-3.0"):AddToBlizOptions(self.configName)
165+
local _, categoryID = LibStub("AceConfigDialog-3.0"):AddToBlizOptions(self.configName)
166+
self.categoryID = categoryID
166167
else
167168
LibStub("AceConfigRegistry-3.0"):NotifyChange(self.configName)
168169
end

0 commit comments

Comments
 (0)