Skip to content

Commit

Permalink
🐛 restore input_volume_value action
Browse files Browse the repository at this point in the history
  • Loading branch information
janwojcicki committed Mar 30, 2021
1 parent 94e49b8 commit be66b6d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/action_handlers/user_action.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,6 @@ pub fn handle(msg: &UserAction, state: &mut RSState, ctx: &Ctx) {
UserAction::RequestQuit => {
ctx.shutdown();
}
UserAction::InputVolumeValue => {}
}
}
2 changes: 2 additions & 0 deletions src/config/actions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ impl ToString for UserAction {
UserAction::Confirm => "confirm".to_string(),
UserAction::Hide(_) => "hide".to_string(),
UserAction::SetSelected(_) => "unsupported".to_string(),
UserAction::InputVolumeValue => "input_volume_value".to_string(),
}
}
}
Expand Down Expand Up @@ -111,6 +112,7 @@ impl TryFrom<String> for UserAction {
"right" => UserAction::MoveRight,
"cycle_pages_forward" => UserAction::CyclePages(1),
"cycle_pages_backward" => UserAction::CyclePages(-1),
"input_volume_value" => UserAction::InputVolumeValue,
"close_context_menu" => UserAction::CloseContextMenu,
"confirm" => UserAction::Confirm,
"hide" => UserAction::Hide(None),
Expand Down
2 changes: 2 additions & 0 deletions src/models/actions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ pub enum UserAction {
// number of percentage points it should be changed by
RequstChangeVolume(i16, Option<EntryIdentifier>),

InputVolumeValue,

// context menus
OpenContextMenu(Option<EntryIdentifier>),
CloseContextMenu,
Expand Down

0 comments on commit be66b6d

Please sign in to comment.