feat(delegate): control start button via pause events

Closes #4
This commit is contained in:
Dmitriy Pleshevskiy 2022-02-18 00:13:42 +03:00
parent 5581a671a1
commit 12998ab5ca
1 changed files with 8 additions and 0 deletions

View File

@ -44,6 +44,14 @@ impl AppDelegate<state::App> for Delegate {
));
Handled::Yes
}
_ if cmd.is(cmd::PAUSE_ALL_TIMER_COMP) => {
data.paused = true;
Handled::No
}
_ if cmd.is(cmd::UNPAUSE_ALL_TIMER_COMP) => {
data.paused = false;
Handled::No
}
_ => Handled::No,
}
}