feat(nix-monitor): update version 1.3.0 (#144)

* feat(nix-monitor): add system stats check mode

* fix(nix-monitor): prevent terminal closing on non-zero exit

* fix(nix-monitor): force system stats check when clicking the Check button (if not off)
This commit is contained in:
Aviv Bintang Aringga
2026-07-29 08:49:09 -04:00
committed by GitHub
parent ddfcf69ede
commit e0f8006b74
4 changed files with 52 additions and 22 deletions
+6 -14
View File
@@ -263,13 +263,7 @@ function onUpdateClicked()
noctalia.notifyError(tr("notification.update_command_is_empty"))
return
end
if cfg("close_on_enter") then
command = `{command} && echo && read -p "{tr("terminal.press_enter_to_exit")}"`
end
panel.close()
noctalia.runInTerminal(command)
runCommandInTerminal(command)
end
function onCleanClicked()
@@ -278,13 +272,7 @@ function onCleanClicked()
noctalia.notifyError(tr("notification.clean_command_is_empty"))
return
end
if cfg("close_on_enter") then
command = `{command} && echo && read -p "{tr("terminal.press_enter_to_exit")}"`
end
panel.close()
noctalia.runInTerminal(command)
runCommandInTerminal(command)
end
function onOptimizeClicked()
@@ -293,11 +281,15 @@ function onOptimizeClicked()
noctalia.notifyError(tr("notification.optimize_command_is_empty"))
return
end
runCommandInTerminal(command)
end
function runCommandInTerminal(command)
if cfg("close_on_enter") then
command = `{command} && echo && read -p "{tr("terminal.press_enter_to_exit")}"`
end
command = `{command} || (echo && read -p "{tr("terminal.command_exits_non_zero")}")`
panel.close()
noctalia.runInTerminal(command)
end