1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-08-16 22:31:03 +02:00

Merge pull request #701 from JakeStanger/fix/workspace-name-map-focus

fix(workspaces): incorrectly checking focus using name_map value
This commit is contained in:
Jake Stanger 2024-08-11 16:47:02 +01:00 committed by GitHub
commit 513e249ccd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()
}