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:
parent
59307f3aef
commit
cf44c461db
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue