Add a way to use splits when opening in file finder (#20507)

This commit is contained in:
Kirill Bulatov 2024-11-13 11:58:42 +01:00 committed by GitHub
parent 90ffd65a10
commit 56cf32cb91
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 191 additions and 16 deletions

View file

@ -66,7 +66,7 @@ impl<M: ManagedView> PopoverMenuHandle<M> {
.map_or(false, |state| state.menu.borrow().as_ref().is_some())
}
pub fn is_focused(&self, cx: &mut WindowContext) -> bool {
pub fn is_focused(&self, cx: &WindowContext) -> bool {
self.0.borrow().as_ref().map_or(false, |state| {
state
.menu