Skip to content

Commit

Permalink
Merge pull request #701 from JakeStanger/fix/workspace-name-map-focus
Browse files Browse the repository at this point in the history
fix(workspaces): incorrectly checking focus using name_map value
  • Loading branch information
JakeStanger authored Aug 11, 2024
2 parents 80729a6 + 82a6660 commit 513e249
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 513e249

Please sign in to comment.