aboutsummaryrefslogtreecommitdiffstats
path: root/src/daemon/command.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/command.rs')
-rw-r--r--src/daemon/command.rs2
1 files changed, 2 insertions, 0 deletions
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<Command>) -> thread::JoinHandle<()> {
@@ -57,6 +58,7 @@ pub fn start_command_listener(tx: Sender<Command>) -> 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
};