from retail
This commit is contained in:
@@ -1146,6 +1146,7 @@ local loadedFrame = CreateFrame("Frame");
|
||||
WeakAuras.frames["Addon Initialization Handler"] = loadedFrame;
|
||||
loadedFrame:RegisterEvent("ADDON_LOADED");
|
||||
loadedFrame:RegisterEvent("PLAYER_LOGIN");
|
||||
loadedFrame:RegisterEvent("PLAYER_LOGOUT");
|
||||
loadedFrame:RegisterEvent("PLAYER_ENTERING_WORLD");
|
||||
loadedFrame:SetScript("OnEvent", function(self, event, addon)
|
||||
if(event == "ADDON_LOADED") then
|
||||
@@ -1200,6 +1201,10 @@ loadedFrame:SetScript("OnEvent", function(self, event, addon)
|
||||
-- db isn't valid. Request permission to run repair tool before logging in
|
||||
StaticPopup_Show("WEAKAURAS_CONFIRM_REPAIR", nil, nil, {reason = "downgrade"})
|
||||
end
|
||||
elseif event == "PLAYER_LOGOUT" then
|
||||
for id in pairs(db.displays) do
|
||||
Private.SaveAuraEnvironment(id)
|
||||
end
|
||||
else
|
||||
local callback
|
||||
if(event == "PLAYER_ENTERING_WORLD") then
|
||||
|
||||
Reference in New Issue
Block a user