Skip to content

Commit 018745b

Browse files
committed
Fixed an error when trying to open the config UI in Midnight
1 parent dff0c26 commit 018745b

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

core/Config.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ function Config:Initialize()
5656
CallbackRegistryMixin.OnLoad(self);
5757

5858
self:RegisterOptions();
59-
LibStub("AceConfigDialog-3.0"):AddToBlizOptions(addonName, addonName);
59+
local _, categoryID = LibStub("AceConfigDialog-3.0"):AddToBlizOptions(addonName, addonName);
60+
self.categoryID = categoryID;
6061
end
6162

6263
function Config:GetOptions()
@@ -234,7 +235,7 @@ function Config:RegisterOptions()
234235
end
235236

236237
function Config:OpenConfig()
237-
Settings.OpenToCategory(addonName);
238+
Settings.OpenToCategory(self.categoryID);
238239
end
239240

240241
function Config:OpenConfigDialog()

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"/>

modules/SideBarMixin.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ function SideBarMixin:SetupHook()
242242
end
243243

244244
do
245-
--- @return PlayerSpellsFrame_TalentsFrame|TalentViewerUIMixinTWW
245+
--- @return PlayerSpellsFrame_TalentsFrame|TalentViewer_ClassTalentsFrameTemplate
246246
function SideBarMixin:GetTalentsTab()
247247
error('override in implementation');
248248
end

modules/TalentTreeViewerSidebar.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function Module:GetTalentTreeViewer()
3232
return TalentViewerLoader:GetTalentViewer();
3333
end
3434

35-
---@return TalentViewerUIMixinTWW
35+
---@return TalentViewer_ClassTalentsFrameTemplate
3636
function Module:GetTalentsTab()
3737
return self:GetTalentTreeViewer():GetTalentFrame();
3838
end

0 commit comments

Comments
 (0)