Fix context menu in tab bar

This commit is contained in:
Antonio Scandurra
2023-12-22 10:23:27 +01:00
parent 3d5b903f78
commit 3de72f8366
10 changed files with 100 additions and 30 deletions
@@ -400,6 +400,7 @@ impl ProjectPanel {
if is_root {
menu = menu.entry(
"Remove from Project",
None,
cx.handler_for(&this, move |this, cx| {
this.project.update(cx, |project, cx| {
project.remove_worktree(worktree_id, cx)