Verified Commit f8ee38c6 authored by Merathilis's avatar Merathilis

Updated the install check.

parent 4e945762
......@@ -108,18 +108,13 @@ function MER:Initialize()
E:Delay(6, function() MER:CheckVersion() end)
-- run the setup again when a profile gets deleted.
-- run the setup when ElvUI install is finished and again when a profile gets deleted.
local profileKey = ElvDB.profileKeys[E.myname.." - "..E.myrealm]
if ElvDB.profileKeys and profileKey == nil then
if (E.private.install_complete == E.version and E.db.mui.installed == nil) or (ElvDB.profileKeys and profileKey == nil) then
E:GetModule("PluginInstaller"):Queue(MER.installTable)
end
if E.db.mui.installed and E.db.mui.general.LoginMsg then
print(MER.Title..format("v|cff00c0fa%s|r", MER.Version)..L[" is loaded. For any issues or suggestions, please visit "]..MER:PrintURL("https://git.tukui.org/Merathilis/ElvUI_MerathilisUI/issues"))
end
-- run install when ElvUI install finishes
if E.private.install_complete == E.version and E.db.mui.installed == nil then
E:GetModule("PluginInstaller"):Queue(MER.installTable)
end
end
......@@ -2748,6 +2748,8 @@ end
local function InstallComplete()
E.private.install_complete = E.version
E.db.mui.installed = true
E.private.mui.install_complete = MER.Version
MERDataPerChar = MER.Version
ReloadUI()
......
......@@ -3,7 +3,9 @@ local MER, E, L, V, P, G = unpack(select(2, ...))
----------------------------------------------------------------------------------------
-- General options
----------------------------------------------------------------------------------------
V.mui = {}
V.mui = {
install_complete = nil,
}
----------------------------------------------------------------------------------------
-- Misc options
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment