View Single Post
01-11-24, 10:09 PM   #2
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,892
The AddonCompartmentFrame's UpdateDisplay method has an explicit self:Show()

The initial UpdateDisplay happens in the PLAYER_ENTERING_WORLD event which runs after PLAYER_LOGIN.

It will do and additonal UpdateDisplay for each registerd addon including those that are Load-On-Demand (LOD) which can be loaded at any time during a session.

Try replacing AddonCompartmentFrame:Hide() with
Lua Code:
  1. AddonCompartmentFrame:HookScript("OnShow", function(self)
  2.     self:Hide()
  3. end)
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 01-12-24 at 08:52 AM.
  Reply With Quote