add last refresh timestamp to weather popup

This commit is contained in:
Greyfeather
2026-01-03 21:46:18 -07:00
parent 8538efe743
commit 7197f9ddfb
2 changed files with 33 additions and 1 deletions
@@ -42,7 +42,8 @@ Singleton {
visib: 0,
press: 0,
temp: 0,
tempFeelsLike: 0
tempFeelsLike: 0,
lastRefresh: 0,
})
function refineData(data) {
@@ -75,6 +76,7 @@ Singleton {
temp.temp += "°C";
temp.tempFeelsLike += "°C";
}
temp.lastRefresh = Qt.locale().toString(new Date(), (Config.options?.time.format ?? "hh:mm") + " - " + (Config.options?.time.dateWithYearFormat ?? "dd/MM/yyyy"));
root.data = temp;
}