mirror of
https://github.com/brues-code/pfUI.git
synced 2026-11-03 09:26:57 +00:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user