Skip to content

Commit

Permalink
Default to default action
Browse files Browse the repository at this point in the history
Removes previous parse error.
  • Loading branch information
ArchWand authored Jun 14, 2024
1 parent 9fb2153 commit afca9a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ pub fn handle_socket_message(
let id = get_window_id(notif_id, manager)?;
let action = action_id
.parse::<usize>()
.map_err(|_| CLIError::Parse("Value is not of type usize."))?;
.unwrap_or(0);
manager.trigger_action_idx(id, action);
}
"show" => {
Expand Down

0 comments on commit afca9a7

Please sign in to comment.