InFlightDB = { profiles = { Default = tempDB }} |
end |
|
-- Check that this is the right version of the client and database to avoid corruption |
local client = select(4, GetBuildInfo()) < 20000 and "classic" |
if InFlightDB.version ~= client or InFlightDB.version ~= "classic" then |
-- Check that this is the right version of the client |
if select(4, GetBuildInfo()) > 20000 then |
Print(L["AddonDisabled"]) |
DisableAddOn("InFlight") |
return |
end |
|
-- Check that this is the right version of the database to avoid corruption |
if InFlightDB.version ~= "classic" then |
InFlightDB.global = nil |
InFlightDB.version = "classic" |
if client ~= "classic" then |
Print(L["AddonDisabled"]) |
DisableAddOn("InFlight") |
return |
end |
end |
|
-- Update default data |