added "usual places" explanation
This commit is contained in:
parent
71396cbb6f
commit
2851e8a9a4
@ -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)
|
||||
|
@ -26,7 +26,7 @@
|
||||
animationDuration="0.2"
|
||||
rectAlignment="UpperLeft"
|
||||
offsetXY="60 -5"
|
||||
height="200"
|
||||
height="225"
|
||||
width="350">
|
||||
|
||||
<!-- Header -->
|
||||
@ -53,7 +53,16 @@
|
||||
</Cell>
|
||||
</Row>
|
||||
|
||||
<!-- Buttons: "Don't show again", "Details" and "Close" -->
|
||||
<!-- explanation -->
|
||||
<Row preferredHeight="25">
|
||||
<Cell>
|
||||
<Panel padding="15 15 0 7">
|
||||
<Text resizeTextForBestFit="true">Visit the usual place to receive this update.</Text>
|
||||
</Panel>
|
||||
</Cell>
|
||||
</Row>
|
||||
|
||||
<!-- Buttons: "Don't show again" and "Close" -->
|
||||
<Row preferredHeight="50">
|
||||
<Cell>
|
||||
<HorizontalLayout minHeight="55"
|
||||
|
Loading…
Reference in New Issue
Block a user