Equipment manager: close the slot flyout with the character frame

PopoutsActive checked IsShown, which stays true on the paperdoll and the
sidecar when only CharacterFrame hides. Check IsVisible instead.
This commit is contained in:
Brues
2026-11-02 20:08:32 -06:00
parent 001e09c1b7
commit 893524174c
+4 -2
View File
@@ -768,11 +768,13 @@ pfUI:RegisterModule("equipmentmanager", function()
-- Popout arrows follow the EM sidecar by default. With the
-- "Always Show Equipment Slot Flyouts" option they follow the paperdoll
-- instead, so gear can be swapped without opening the equipment manager.
-- IsVisible, not IsShown: closing CharacterFrame fires OnHide on both
-- without clearing their own shown flags.
local function PopoutsActive()
if C.character.inventory.equipflyout == "1" then
return PaperDollFrame:IsShown()
return PaperDollFrame:IsVisible()
end
return frame:IsShown()
return frame:IsVisible()
end
function UpdatePopouts()