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 { Process {
id: updateProc id: updateProc
command: ["blob-update-available"] command: ["blob-update-available"]
onExited: function(exitCode) { stdout: StdioCollector {
root.updateAvailable = exitCode === 0 waitForEnd: true
onStreamFinished: {
const pending = parseInt(String(text).trim(), 10)
root.updateAvailable = !isNaN(pending) && pending > 0
}
} }
} }