fix: spec-swap crash and unanchored bind config without Ascension API
- TalentGroupChanged: fall back to GetActiveTalentGroup() (or 1) when SpecializationUtil is unavailable, so self.talentGroup is never nil (specswap concat crash, pri/sectalent misfiltering) - ShowWithSpellBook: anchor to UIParent center when AscensionSpellbookFrame is missing instead of showing an unanchored frame
This commit is contained in:
parent
e55c548b6e
commit
91b52982b0
2 changed files with 4 additions and 0 deletions
|
|
@ -698,6 +698,8 @@ end
|
|||
function addon:TalentGroupChanged()
|
||||
if SpecializationUtil and SpecializationUtil.GetActiveSpecialization then
|
||||
self.talentGroup = SpecializationUtil.GetActiveSpecialization()
|
||||
else
|
||||
self.talentGroup = (GetActiveTalentGroup and GetActiveTalentGroup()) or 1
|
||||
end
|
||||
|
||||
if self.settings.specswap then
|
||||
|
|
|
|||
|
|
@ -16,6 +16,8 @@ function CliqueConfig:ShowWithSpellBook()
|
|||
if AscensionSpellbookFrame then
|
||||
self:SetParent(AscensionSpellbookFrame)
|
||||
self:SetPoint("LEFT", AscensionSpellbookFrame, "RIGHT", 55, 0)
|
||||
else
|
||||
self:SetPoint("CENTER", UIParent, "CENTER")
|
||||
end
|
||||
self:Show()
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue