Skip to content

Commit 39d146d

Browse files
committed
some more clean up
1 parent a3455d2 commit 39d146d

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

ReforgedArmory/Core/Core.lua

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,14 +1027,13 @@ function module:GetGearSlotInfo(unit, slot)
10271027
end
10281028

10291029
local function HandleCharacterFrameExpand()
1030-
local frame = _G.CharacterFrame
1031-
local showStatus = E.db.cataarmory.character.expandButton.autoExpand
1030+
local db = E.db.cataarmory.character.expandButton
10321031
if _G.PaperDollFrame:IsVisible() or _G.PetPaperDollFrame:IsVisible() then
1033-
if _G.CharacterStatsPane:IsShown() ~= showStatus then
1032+
if _G.CharacterStatsPane:IsShown() ~= db.autoExpand then
10341033
_G.CharacterFrameExpandButton:Click()
10351034
end
10361035
end
1037-
_G.CharacterFrameExpandButton:SetShown(not E.db.cataarmory.character.expandButton.hide)
1036+
_G.CharacterFrameExpandButton:SetShown(not db.hide)
10381037
end
10391038

10401039
local function ControlFrame_OnShow(frame)

0 commit comments

Comments
 (0)