Skip to content

Commit

Permalink
fix move hud grid not hidding correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Nils89 committed Sep 16, 2024
1 parent f05276c commit 0f9837a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions settings/moveableFrameHandler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ local function lockHudObjects(_, _, inCombatLockdown)
mf:Hide()
end

GW.GridToggle(GW.MoveHudScaleableFrame.moverSettingsFrame.defaultButtons.showGrid)
GW.GridToggle(GW.MoveHudScaleableFrame.moverSettingsFrame.defaultButtons.showGrid, _, true)

-- enable main bar layout manager and trigger the changes
GW.MoveHudScaleableFrame.layoutManager:GetScript("OnEvent")(GW.MoveHudScaleableFrame.layoutManager)
Expand Down Expand Up @@ -259,9 +259,9 @@ local function createGrid()
grid:Hide()
end

local function GridToggle(self)
local function GridToggle(self, _, forceHide)
self = self:GetParent()
if grid:IsShown() then
if grid:IsShown() or forceHide then
grid:Hide()
self.gridAlign:Hide()
self.showGrid:SetText(L["Show grid"])
Expand Down
1 change: 1 addition & 0 deletions settings/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -959,6 +959,7 @@
<Layer>
<FontString parentKey="text" text="GRID ALIGN" inherits="gw_button_font_black" justifyH="LEFT">
<Size x="130" y="20"/>
<Color r="1" g="1" b="1"/>
<Anchors>
<Anchor point="RIGHT" relativePoint="LEFT" x="-5" y="0"/>
</Anchors>
Expand Down

0 comments on commit 0f9837a

Please sign in to comment.