From 9dc3d120603a7c03ed4aa45e4e045c2ebd5e4f46 Mon Sep 17 00:00:00 2001 From: Florian Berthold Date: Fri, 29 May 2026 10:43:54 +0200 Subject: [PATCH] fix(Core): defer incompatible-addon StaticPopup past PLAYER_LOGIN --- Kui_Nameplates/Core/Core.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Kui_Nameplates/Core/Core.lua b/Kui_Nameplates/Core/Core.lua index a7779e6..3328cd5 100644 --- a/Kui_Nameplates/Core/Core.lua +++ b/Kui_Nameplates/Core/Core.lua @@ -502,7 +502,12 @@ function addon:OnInitialize() addon.TankModule = addon:GetModule("TankMode") if IsAddOnLoaded("PlateBuffs") then - StaticPopup_Show("KUINAMEPLATES_INCOMPATIBLE") + -- 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 --