cmdsys: menubar pt.1

This commit is contained in:
🪞👃🪞 2024-11-08 20:05:05 +01:00
parent 2b163e9e27
commit 38e8cfc214
7 changed files with 180 additions and 136 deletions

View file

@ -3,8 +3,10 @@ use crate::*;
pub enum TransportCommand {
FocusNext,
FocusPrev,
Play,
Pause,
PlayToggle,
PlayFromStart,
TogglePlay,
Increment,
Decrement,
FineIncrement,
@ -25,7 +27,7 @@ impl<E: Engine> Command<TransportToolbar<E>> for TransportCommand {
Self::FocusPrev => {
state.focus.prev();
},
Self::TogglePlay => {
Self::PlayToggle => {
state.toggle_play()?;
},
Self::Increment => {