mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-08-16 22:31:03 +02:00
fix(workspaces): incorrectly checking focus using name_map value
Fixes #639
This commit is contained in:
parent
80729a6cfa
commit
82a6660c85
1 changed files with 1 additions and 1 deletions
|
@ -184,7 +184,7 @@ fn find_btn(map: &HashMap<i64, Button>, workspace: &Workspace) -> Option<Button>
|
||||||
map.get(&workspace.id)
|
map.get(&workspace.id)
|
||||||
.or_else(|| {
|
.or_else(|| {
|
||||||
map.values()
|
map.values()
|
||||||
.find(|btn| btn.label().unwrap_or_default() == workspace.name)
|
.find(|&btn| btn.widget_name() == workspace.name)
|
||||||
})
|
})
|
||||||
.cloned()
|
.cloned()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue