Tidy up some more modal behaviour
This commit is contained in:
parent
a73265ace4
commit
e6d6806693
5 changed files with 27 additions and 41 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue