Fix panic caused by focusing the same thing twice
This commit is contained in:
@@ -268,7 +268,6 @@ impl PickerDelegate for CommandPaletteDelegate {
|
||||
}
|
||||
|
||||
fn dismissed(&mut self, cx: &mut ViewContext<Picker<Self>>) {
|
||||
cx.focus(&self.previous_focus_handle);
|
||||
self.command_palette
|
||||
.update(cx, |_, cx| cx.emit(ModalEvent::Dismissed))
|
||||
.log_err();
|
||||
|
||||
Reference in New Issue
Block a user