From aa26a59f559516e1815ef19a064e42932ba29ad8 Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Thu, 20 Apr 2023 10:23:23 +0200 Subject: [PATCH] removed details from downloaded modversion file --- src/core/Global.ttslua | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/core/Global.ttslua b/src/core/Global.ttslua index 0a16260c..b63d0499 100644 --- a/src/core/Global.ttslua +++ b/src/core/Global.ttslua @@ -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]