From 3cfe580922fe9b58189cc19fccbc3eec7db4856a Mon Sep 17 00:00:00 2001 From: Zhou Fang Date: Sun, 22 Sep 2024 11:04:05 +0900 Subject: [PATCH] fix: register to elvui with x-version --- Initialize.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Initialize.lua b/Initialize.lua index c0796bfd..6499fd45 100644 --- a/Initialize.lua +++ b/Initialize.lua @@ -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 @@ -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