Merge pull request #2100 from zed-industries/visible-worktrees-in-collab-ui

Omit hidden worktrees when showing projects in collaboration UI
This commit is contained in:
Max Brunsfeld
2023-01-26 15:01:10 -08:00
committed by GitHub
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ on:
push:
branches:
- main
- "v*"
- "v[0-9]+.[0-9]+.x"
tags:
- "v*"
pull_request:
+3 -1
View File
@@ -1924,7 +1924,9 @@ impl Database {
};
if let Some(db_worktree) = db_worktree {
project.worktree_root_names.push(db_worktree.root_name);
if db_worktree.visible {
project.worktree_root_names.push(db_worktree.root_name);
}
}
}
}