removed details from downloaded modversion file

This commit is contained in:
Chr1Z93 2023-04-20 10:23:23 +02:00
parent a526e645a8
commit aa26a59f55

View File

@ -1065,21 +1065,16 @@ function compareVersion(request)
-- stop here if "don't show again" was clicked for this version before
if acknowledgedUpgradeVersions[modMeta["latestVersion"]] then return end
-- end here if no release notes are found
if modMeta["releaseNotes"][modMeta["latestVersion"]] == nil then
log("Release notes for latest version not found!")
else
updateNotificationLoading()
updateNotificationLoading()
-- delay to avoid lagging during onLoad()
Wait.time(function() UI.show("FinnIcon") end, 1)
end
-- delay to avoid lagging during onLoad()
Wait.time(function() UI.show("FinnIcon") end, 1)
end
-- updates the XML update notification based on the mod metadata
function updateNotificationLoading()
-- grab data
local highlights = modMeta["releaseNotes"][modMeta["latestVersion"]]["highlights"]
local highlights = modMeta["releaseHighlights"]
-- concatenate the release highlights
local highlightText = "• " .. highlights[1]