From fb863507b04e346dc6e939d00795800455136004 Mon Sep 17 00:00:00 2001 From: Steven Jackson Date: Thu, 3 Jul 2014 13:00:08 -0500 Subject: [PATCH] Update version tests --- Interface/AddOns/SVUI/system/system.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Interface/AddOns/SVUI/system/system.lua b/Interface/AddOns/SVUI/system/system.lua index c3f5515..fec5978 100644 --- a/Interface/AddOns/SVUI/system/system.lua +++ b/Interface/AddOns/SVUI/system/system.lua @@ -306,7 +306,7 @@ function SuperVillain:ToggleConfig() if state ~= "MISSING" and state ~= "DISABLED" then LoadAddOn("SVUI_ConfigOMatic") local config_version = GetAddOnMetadata("SVUI_ConfigOMatic","Version") - if(tonumber(config_version) < 4) then + if(tonumber(config_version) < self.version) then self:StaticPopup_Show("CLIENT_UPDATE_REQUEST") end else @@ -343,7 +343,7 @@ function SuperVillain:RefreshEverything(bypass) collectgarbage("collect"); if not bypass then - if(SVUI_Profile.SAFEDATA.install_complete == nil or (SVUI_Profile.SAFEDATA.install_complete and type(SVUI_Profile.SAFEDATA.install_complete) == 'boolean') or (SVUI_Profile.SAFEDATA.install_complete and type(tonumber(SVUI_Profile.SAFEDATA.install_complete)) == 'number' and tonumber(SVUI_Profile.SAFEDATA.install_complete) < 4.031)) then + if(SVUI_Profile.SAFEDATA.install_complete == nil or (SVUI_Profile.SAFEDATA.install_complete and type(SVUI_Profile.SAFEDATA.install_complete) == 'boolean') or (SVUI_Profile.SAFEDATA.install_complete and type(tonumber(SVUI_Profile.SAFEDATA.install_complete)) == 'number' and tonumber(SVUI_Profile.SAFEDATA.install_complete) < self.version)) then self:Install(); end end -- 1.7.9.5