Update version tests
Steven Jackson [07-03-14 - 18:00]
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