From b35a7ff65d5dc7623a27df52381c5f0124dbff86 Mon Sep 17 00:00:00 2001 From: MANISH KUMAR <159711477+mannish01@users.noreply.github.com> Date: Mon, 30 Nov 2026 01:10:23 +0530 Subject: [PATCH] [ryoku] shell: guard deferred Reactor announce when qsbar unloads Note: Fixed: switching the QS Bar gap animation away from Reactor no longer logs a QML TypeError. --- ryoku/shell/CHANGELOG.md | 4 ++++ .../modules/bar/barstyles/qsbar/modules/ParticleStream.qml | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ryoku/shell/CHANGELOG.md b/ryoku/shell/CHANGELOG.md index d99dd091e9..42d7aadfa7 100644 --- a/ryoku/shell/CHANGELOG.md +++ b/ryoku/shell/CHANGELOG.md @@ -1,6 +1,10 @@ # Changelog: ryoku/shell/ ## Unreleased +- **Leaving Reactor mode no longer logs a QML error (#976).** Switching the + QS Bar gap animation away from Reactor deferred a call on the stream that + could already be unloaded; the deferred call is now guarded so only a live + stream announces. - **Shima's weather matches the launcher (#885).** Shima read wttr.in, whose reading can be degrees and an hour off; it now asks Open-Meteo like the launcher and keeps wttr.in only as the fallback. diff --git a/ryoku/shell/quickshell/shell/modules/bar/barstyles/qsbar/modules/ParticleStream.qml b/ryoku/shell/quickshell/shell/modules/bar/barstyles/qsbar/modules/ParticleStream.qml index 543c284358..5d09b0ad42 100644 --- a/ryoku/shell/quickshell/shell/modules/bar/barstyles/qsbar/modules/ParticleStream.qml +++ b/ryoku/shell/quickshell/shell/modules/bar/barstyles/qsbar/modules/ParticleStream.qml @@ -167,7 +167,7 @@ Item { var wsn7 = ws7 ? Number(ws7.name) : -1 lastWsId = isFinite(wsn7) && wsn7 > 0 ? wsn7 : -1 root.setReactorFastTick7() - Qt.callLater(function() { root.announceReactorArmed7() }) + Qt.callLater(function() { if (root) root.announceReactorArmed7() }) } if (mode === 8) { animating8 = true @@ -209,7 +209,7 @@ Item { animating7 = ambientField7 canvas.paintTick = ambientField7 ? ambientIdleTick7 : reactorFrameTick7 root.requestFrame() - Qt.callLater(function() { root.announceReactorArmed7() }) + Qt.callLater(function() { if (root) root.announceReactorArmed7() }) } else if (mode === 8) { animating8 = true quoteWake8.stop()