diff --git a/src/core/Global.ttslua b/src/core/Global.ttslua index 1d95e244..726ae367 100644 --- a/src/core/Global.ttslua +++ b/src/core/Global.ttslua @@ -1061,6 +1061,7 @@ function compareVersion(request) -- stop here if on latest version or "don't show again" was clicked if MOD_VERSION == modMeta["latestVersion"] then return end + if dontNotify[modMeta["latestVersion"]] then return end -- end here if no release notes are found @@ -1068,7 +1069,9 @@ function compareVersion(request) log("Release notes for latest version not found!") else updateNotificationLoading() - UI.show("FinnIcon") + + -- delay to avoid lagging during onLoad() + Wait.time(function() UI.show("FinnIcon") end, 1) end end @@ -1086,7 +1089,7 @@ function updateNotificationLoading() local highlightText = "• " .. highlights[1] for i, entry in pairs(highlights) do - if i~=1 then + if i ~= 1 then highlightText = highlightText .. "\n• " .. entry end end @@ -1099,7 +1102,7 @@ function updateNotificationLoading() highlightRow.attributes.preferredHeight = 20*#highlights local window = find_tag_with_id(ui, 'updateNotification') - window.attributes.height = highlightRow.attributes.preferredHeight + 100 + window.attributes.height = highlightRow.attributes.preferredHeight + 125 -- update the XML UI UI.setXmlTable(ui) diff --git a/xml/UpdateNotification.xml b/xml/UpdateNotification.xml index ef3ec286..20510598 100644 --- a/xml/UpdateNotification.xml +++ b/xml/UpdateNotification.xml @@ -26,7 +26,7 @@ animationDuration="0.2" rectAlignment="UpperLeft" offsetXY="60 -5" - height="200" + height="225" width="350"> @@ -53,7 +53,16 @@ - + + + + + Visit the usual place to receive this update. + + + + +