Tidy up some more modal behaviour

This commit is contained in:
Conrad Irwin 2023-11-09 21:11:10 -07:00
parent a73265ace4
commit e6d6806693
5 changed files with 27 additions and 41 deletions

View file

@ -126,10 +126,6 @@ impl GoToLine {
}
fn cancel(&mut self, _: &menu::Cancel, cx: &mut ViewContext<Self>) {
self.active_editor.update(cx, |editor, cx| {
editor.focus(cx);
cx.notify();
});
cx.emit(ModalEvent::Dismissed);
}