Work with window handles instead of ids in drag code
This commit is contained in:
parent
d896d89842
commit
da7dc9c880
5 changed files with 34 additions and 34 deletions
|
@ -1,8 +1,8 @@
|
|||
use collections::CommandPaletteFilter;
|
||||
use fuzzy::{StringMatch, StringMatchCandidate};
|
||||
use gpui::{
|
||||
actions, elements::*, keymap_matcher::Keystroke, Action, AppContext, Element, MouseState,
|
||||
ViewContext,
|
||||
actions, elements::*, keymap_matcher::Keystroke, Action, AnyWindowHandle, AppContext, Element,
|
||||
MouseState, ViewContext,
|
||||
};
|
||||
use picker::{Picker, PickerDelegate, PickerEvent};
|
||||
use std::cmp;
|
||||
|
@ -28,7 +28,7 @@ pub struct CommandPaletteDelegate {
|
|||
pub enum Event {
|
||||
Dismissed,
|
||||
Confirmed {
|
||||
window_id: usize,
|
||||
window: AnyWindowHandle,
|
||||
focused_view_id: usize,
|
||||
action: Box<dyn Action>,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue