fix(Core): defer incompatible-addon StaticPopup past PLAYER_LOGIN

This commit is contained in:
2026-05-29 10:43:54 +02:00
parent 6359379fdc
commit 9dc3d12060
+5
View File
@@ -502,7 +502,12 @@ function addon:OnInitialize()
addon.TankModule = addon:GetModule("TankMode")
if IsAddOnLoaded("PlateBuffs") then
-- CoA: StaticPopup_Show silently fails when called from OnInitialize (ADDON_LOADED,
-- before PLAYER_LOGIN). Defer via C_Timer.After(0, …) so the popup fires after
-- the StaticPopup system is ready. See PORTING.md §StaticPopup_Show during PLAYER_LOGIN.
C_Timer.After(0, function()
StaticPopup_Show("KUINAMEPLATES_INCOMPATIBLE")
end)
end
end
---------------------------------------------------------------------- enable --