1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-04-19 19:34:24 +02:00

fix(workspaces): favourites not persisting for initially open workspaces

Fixes #464.
This commit is contained in:
Jake Stanger 2024-03-10 13:41:52 +00:00
parent 59307f3aef
commit cf44c461db
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61

View file

@ -239,10 +239,11 @@ impl Module<gtk::Box> for WorkspacesModule {
let mut add_favourites = |names: &Vec<String>| {
for name in names {
fav_names.push(name.to_string());
if !added.contains(name) {
add_workspace(name, Visibility::Hidden);
added.insert(name.to_string());
fav_names.push(name.to_string());
}
}
};