From dc1dbe1df4d03592256459de4174f9e56aca594d Mon Sep 17 00:00:00 2001 From: Jin Liu Date: Sun, 31 May 2026 11:46:56 +0800 Subject: [PATCH] UpdateingImage: allow empty command line It will assume that the image is updated by some external process, and only periodically reload it. --- UpdatingImage/updatingimage.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/UpdatingImage/updatingimage.lua b/UpdatingImage/updatingimage.lua index fcd2e8d..f58f991 100644 --- a/UpdatingImage/updatingimage.lua +++ b/UpdatingImage/updatingimage.lua @@ -77,6 +77,13 @@ barWidget.setUpdateInterval(updateInterval) local imageSet = false function update() + if not commandLine or commandLine == "" then + if not imageSet then + barWidget.setImage(imagePath, true, imageWidth, imageHeight) + imageSet = true + end + return + end noctalia.runAsync(commandLine, function(result) if result.exitCode == 0 then if not imageSet then