Skip to content

Commit

Permalink
fix(workspaces): favourites not persisting for initially open workspaces
Browse files Browse the repository at this point in the history
Fixes #464.
  • Loading branch information
JakeStanger committed Mar 10, 2024
1 parent 59307f3 commit cf44c46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/workspaces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
};
Expand Down

0 comments on commit cf44c46

Please sign in to comment.