Skip to content

Commit

Permalink
fix: register to elvui with x-version
Browse files Browse the repository at this point in the history
  • Loading branch information
fang2hou committed Sep 22, 2024
1 parent c6a13f9 commit 3cfe580
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Initialize.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ addon[7] = G.WT

_G["WindTools"] = addon

local versionString = C_AddOns_GetAddOnMetadata(addonName, "Version")
local xVersionString = C_AddOns_GetAddOnMetadata(addonName, "X-Version")

local function getVersion()
local versionString = C_AddOns_GetAddOnMetadata(addonName, "Version")
local xVersionString = C_AddOns_GetAddOnMetadata(addonName, "X-Version")
local version, variant, subversion

-- Git
Expand Down Expand Up @@ -108,7 +109,8 @@ function W:Initialize()
self:UpdateScripts()
self:InitializeModules()

EP:RegisterPlugin(addonName, W.OptionsCallback, false, W.Version)
-- To avoid the update tips from ElvUI when alpha/beta version is used
EP:RegisterPlugin(addonName, W.OptionsCallback, false, xVersionString)
self:SecureHook(E, "UpdateAll", "UpdateModules")
self:RegisterEvent("PLAYER_ENTERING_WORLD")
end
Expand Down

0 comments on commit 3cfe580

Please sign in to comment.