From 0d483a13a0ee5fa9f5f28a61d0c571eb8d83848b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20H=C3=BCskes?= Date: Mon, 28 Nov 2022 23:11:28 +0100 Subject: [PATCH] Fix open prefs taint --- broker.lua | 5 ++++- core.lua | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/broker.lua b/broker.lua index 1c2ef46..8d8122a 100755 --- a/broker.lua +++ b/broker.lua @@ -8,6 +8,7 @@ local function bclick(swap) if(not InCombatLockdown() and GarrisonLandingPage) then if(GarrisonLandingPage:IsShown()) then GarrisonLandingPage_Toggle() + GameMenuFrame:Hide() if(not swap) then return end @@ -19,6 +20,7 @@ local function bclick(swap) if(not GarrisonLandingPage.garrTypeID) then -- print("still no garrType") GarrisonLandingPage_Toggle() + GameMenuFrame:Hide() return end end @@ -74,7 +76,8 @@ local function OnClick(_, button) if(not InCombatLockdown()) then if(SettingsPanel) then if(SettingsPanel:IsVisible()) then - SettingsPanel:Hide() + HideUIPanel(SettingsPanel) + HideUIPanel(GameMenuFrame) else Settings.OpenToCategory(childName) end diff --git a/core.lua b/core.lua index cf4336c..9497270 100755 --- a/core.lua +++ b/core.lua @@ -95,9 +95,9 @@ function events:PLAYER_ENTERING_WORLD() if(not IsAddOnLoaded("Blizzard_GarrisonUI")) then UIParentLoadAddOn("Blizzard_GarrisonUI") end - if(db['hideStandard'] and GarrisonLandingPageMinimapButton) then - GarrisonLandingPageMinimapButton:UnregisterAllEvents() - GarrisonLandingPageMinimapButton:Hide() + if(db['hideStandard'] and ExpansionLandingPageMinimapButton) then + ExpansionLandingPageMinimapButton:UnregisterAllEvents() + ExpansionLandingPageMinimapButton:Hide() end child:switchDisplay(db['garrisonHideCombat']) end