Skip to content

Commit

Permalink
fix(workspaces): incorrectly checking focus using name_map value
Browse files Browse the repository at this point in the history
Fixes #639
  • Loading branch information
JakeStanger committed Aug 11, 2024
1 parent 80729a6 commit 82a6660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/workspaces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ fn find_btn(map: &HashMap<i64, Button>, workspace: &Workspace) -> Option<Button>
map.get(&workspace.id)
.or_else(|| {
map.values()
.find(|btn| btn.label().unwrap_or_default() == workspace.name)
.find(|&btn| btn.widget_name() == workspace.name)
})
.cloned()
}
Expand Down

0 comments on commit 82a6660

Please sign in to comment.