Fix bugs from recent PRs (#11147)

Fix missed delete in project panel
Fix blinking scrollbar from selections-in-scrollbar change

Release Notes:

- N/A (nightly only)
This commit is contained in:
Mikayla Maki 2024-04-28 20:56:17 -07:00 committed by GitHub
parent 39fb1d567d
commit f458f90673
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 14 additions and 8 deletions

View file

@ -471,7 +471,8 @@ impl ProjectPanel {
.separator()
.action("Rename", Box::new(Rename))
.when(!is_root, |menu| {
menu.action("Delete", Box::new(Delete { skip_prompt: false }))
menu.action("Trash", Box::new(Trash { skip_prompt: false }))
.action("Delete", Box::new(Delete { skip_prompt: false }))
})
.when(is_local & is_root, |menu| {
menu.separator()