From 330328d5ac6c633f117127b64b239631ca28277e Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sat, 13 Sep 2025 00:20:42 +0530 Subject: Added notifications --- src/daemon/command.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/daemon/command.rs') diff --git a/src/daemon/command.rs b/src/daemon/command.rs index 18ee41d..4cbadd1 100644 --- a/src/daemon/command.rs +++ b/src/daemon/command.rs @@ -28,6 +28,7 @@ pub enum Command { SoftReset, HardReset, Reset, // conditional soft/hard reset + Notify, // toggle notifications on/off } pub fn start_command_listener(tx: Sender) -> thread::JoinHandle<()> { @@ -57,6 +58,7 @@ pub fn start_command_listener(tx: Sender) -> thread::JoinHandle<()> { "soft-reset" => Command::SoftReset, "hard-reset" => Command::HardReset, "reset" => Command::Reset, + "notify" => Command::Notify, &_ => Command::Run, // doesn't matter, pretty sure it won't ever hit this case }; -- cgit v1.2.3