Skip to content

Commit

Permalink
Merge pull request #489 from JakeStanger/fix/workspace-favourites
Browse files Browse the repository at this point in the history
fix(workspaces): favourites not persisting for initially open workspaces
  • Loading branch information
JakeStanger authored Mar 10, 2024
2 parents 59307f3 + cf44c46 commit 662094c
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 662094c

Please sign in to comment.