Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 677f7ab0ed | |||
| 9dc3d12060 |
@@ -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 --
|
||||
|
||||
@@ -199,7 +199,7 @@ local function Constructor()
|
||||
button:SetScript("OnKeyDown", Keybinding_OnKeyDown)
|
||||
button:SetScript("OnMouseDown", Keybinding_OnMouseDown)
|
||||
button:SetScript("OnMouseWheel", Keybinding_OnMouseWheel)
|
||||
button:SetScript("OnGamePadButtonDown", Keybinding_OnKeyDown)
|
||||
pcall(button.SetScript, button, "OnGamePadButtonDown", Keybinding_OnKeyDown)
|
||||
button:SetPoint("BOTTOMLEFT")
|
||||
button:SetPoint("BOTTOMRIGHT")
|
||||
button:SetHeight(24)
|
||||
|
||||
Reference in New Issue
Block a user