mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-09 05:06:43 +01:00
cmdsys: menubar pt.1
This commit is contained in:
parent
2b163e9e27
commit
38e8cfc214
7 changed files with 180 additions and 136 deletions
|
|
@ -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 => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue