Skip to content

Commit

Permalink
👌 IMPROVE: Update DB Convo
Browse files Browse the repository at this point in the history
  • Loading branch information
Merathilis committed Sep 8, 2024
1 parent 6dda824 commit 4af6689
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions ElvUI_MerathilisUI/Core/Update.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,12 @@ local function UpdateMessage(text, from)
F.Print(L["Update"])
end

print(text .. format("(|cff00a8ff%.2f|r -> |cff00a8ff%s|r)...", from, MER.Version, DONE_ICON))
E:Delay(1, function()
print(text .. format("(|cff00a8ff%.2f|r -> |cff00a8ff%s|r)...", from, MER.Version) .. DONE_ICON)
end)
end

function MER:ForPreReleaseUser() end

function MER:UpdateScripts() -- DB Convert
MER:ForPreReleaseUser()

local currentVersion = tonumber(MER.Version) -- Installed MerathilisUI Version
local globalVersion = tonumber(E.global.mui.version or "0") -- Version in ElvUI Global

Expand All @@ -37,6 +35,8 @@ function MER:UpdateScripts() -- DB Convert
return
end

print(globalVersion, profileVersion, privateVersion, currentVersion)

isFirstLine = true

if profileVersion and profileVersion <= 6.37 then
Expand Down Expand Up @@ -71,6 +71,7 @@ function MER:UpdateScripts() -- DB Convert
if E.db.mui and E.db.mui.maps.eventTracker then
if E.db.mui.maps.eventTracker.worldSoul then
E.db.mui.maps.eventTracker.worldSoul = nil
UpdateMessage(L["Event Tracker"] .. " - " .. L["Update Database"], profileVersion)
end
end
end
Expand Down

0 comments on commit 4af6689

Please sign in to comment.