Show the update icon only when updates are pending

This commit is contained in:
2026-09-21 00:49:35 +00:00
parent e5c20e0a46
commit ef02250a8f
+6 -2
View File
@@ -39,8 +39,12 @@ BarWidget {
Process {
id: updateProc
command: ["blob-update-available"]
onExited: function(exitCode) {
root.updateAvailable = exitCode === 0
stdout: StdioCollector {
waitForEnd: true
onStreamFinished: {
const pending = parseInt(String(text).trim(), 10)
root.updateAvailable = !isNaN(pending) && pending > 0
}
}
}