From ef02250a8fb71ace82f73c6d0fb82bedbe11ab72 Mon Sep 17 00:00:00 2001 From: Sir Blob Date: Mon, 21 Sep 2026 00:49:35 +0000 Subject: [PATCH] Show the update icon only when updates are pending --- shell/plugins/bar/widgets/SystemUpdate.qml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/shell/plugins/bar/widgets/SystemUpdate.qml b/shell/plugins/bar/widgets/SystemUpdate.qml index a4097de..4181374 100644 --- a/shell/plugins/bar/widgets/SystemUpdate.qml +++ b/shell/plugins/bar/widgets/SystemUpdate.qml @@ -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 + } } }