refactor(nix-monitor): rewrite most of the service code to make it a little bit more readable

This commit is contained in:
avivbintangaringga
2026-07-15 01:34:11 +07:00
parent 64bf767497
commit ba68ee6677
3 changed files with 135 additions and 107 deletions
+2 -1
View File
@@ -33,8 +33,9 @@ function displayWidget(glyph: string, text: string, color: string?)
end
end
-- Hooks
function update()
if getState("isRunning") then
if getState("isRemoteCheckRunning") then
displayWidget(barCfg("checking_glyph"), tr("bar.checking"), barCfg("checking_color"))
else
if getState("isUpdateAvailable") then