refactor(nix-monitor): rewrite most of the service code to make it a little bit more readable
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user