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 + } } }