Skip to content

Commit

Permalink
Fix: Clean up naming
Browse files Browse the repository at this point in the history
  • Loading branch information
stefur committed Mar 3, 2024
1 parent 7cae7fe commit c9cdcac
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,10 @@ fn main() {
n_tags,
skip_unoccupied,
}) => {
// Find the focused output state
if let Some(focused_output_state) = flow.find_output("focused") {
// Find the focused output
if let Some(output) = flow.find_output("focused") {
// If there are no n_tags assigned, or if unwrap fails, we assume default of 9
let new_tags = focused_output_state.cycle_tags(
&direction,
&n_tags.unwrap_or(9),
skip_unoccupied,
);
let new_tags = output.cycle_tags(&direction, &n_tags.unwrap_or(9), skip_unoccupied);

flow.send_command(
vec![String::from("set-focused-tags"), new_tags.to_string()],
Expand Down

0 comments on commit c9cdcac

Please sign in to comment.