mirror of
https://github.com/JakeStanger/ironbar.git
synced 2024-11-29 10:33:00 +03:00
Merge pull request #489 from JakeStanger/fix/workspace-favourites
fix(workspaces): favourites not persisting for initially open workspaces
This commit is contained in:
commit
662094c0b1
@ -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());
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user