fix versioncheck

This commit is contained in:
NoM0Re
2025-01-26 00:45:56 +01:00
parent 667a2f3f50
commit 4884ac5132
+2 -11
View File
@@ -1,23 +1,14 @@
---@type string
local AddonName = ...
---@class Private
local Private = select(2, ...)
local AddonName, Private = ...
local L = WeakAuras.L
local optionsVersion = "@project-version@"
--@debug@
optionsVersion = "Dev"
--@end-debug@
local optionsVersion = GetAddOnMetadata(AddonName, "Version")
if optionsVersion ~= WeakAuras.versionString then
local message = string.format(L["The WeakAuras Options Addon version %s doesn't match the WeakAuras version %s. If you updated the addon while the game was running, try restarting World of Warcraft. Otherwise try reinstalling WeakAuras"],
optionsVersion, WeakAuras.versionString)
---@diagnostic disable-next-line: duplicate-set-field
WeakAuras.IsLibsOk = function() return false end
---@diagnostic disable-next-line: duplicate-set-field
WeakAuras.ToggleOptions = function()
WeakAuras.prettyPrint(message)
end
end