Skip to content

Commit afe393b

Browse files
committed
Fixed opening GenericTrait frames (such as skyriding) in Midnight
1 parent 3894026 commit afe393b

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

modules/autoPurchaseDriveTalents.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,11 @@ function Module:BuildOptionsTable()
130130
order = increment(),
131131
func = function()
132132
GenericTraitUI_LoadUI();
133-
GenericTraitFrame:SetSystemID(TRAIT_SYSTEM_ID);
133+
if GenericTraitFrame.SetConfigIDBySystemID then
134+
GenericTraitFrame:SetConfigIDBySystemID(TRAIT_SYSTEM_ID);
135+
else
136+
GenericTraitFrame:SetSystemID(TRAIT_SYSTEM_ID);
137+
end
134138
GenericTraitFrame:SetTreeID(TREE_ID);
135139
GenericTraitFrame:SetShown(not GenericTraitFrame:IsShown());
136140
if GenericTraitFrame:GetNumPoints() == 0 then

modules/autoPurchaseGenericTalents.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,11 @@ function Module:ToggleTreeUI(treeID)
396396
end
397397
GenericTraitUI_LoadUI();
398398
local systemID = C_Traits.GetSystemIDByTreeID(treeID);
399-
GenericTraitFrame:SetSystemID(systemID);
399+
if GenericTraitFrame.SetConfigIDBySystemID then
400+
GenericTraitFrame:SetConfigIDBySystemID(systemID);
401+
else
402+
GenericTraitFrame:SetSystemID(systemID);
403+
end
400404
GenericTraitFrame:SetTreeID(treeID);
401405
GenericTraitFrame:SetShown(not GenericTraitFrame:IsShown());
402406
if GenericTraitFrame:GetNumPoints() == 0 then

0 commit comments

Comments
 (0)