mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-16 07:11:18 +00:00
Dismiss theme_selector on esc
This commit is contained in:
parent
2299730538
commit
ceb5d0c69e
1 changed files with 4 additions and 0 deletions
|
@ -187,6 +187,10 @@ impl PickerDelegate for ThemeSelectorDelegate {
|
||||||
Self::set_theme(self.original_theme.clone(), cx);
|
Self::set_theme(self.original_theme.clone(), cx);
|
||||||
self.selection_completed = true;
|
self.selection_completed = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
self.view
|
||||||
|
.update(cx, |_, cx| cx.emit(DismissEvent))
|
||||||
|
.log_err();
|
||||||
}
|
}
|
||||||
|
|
||||||
fn selected_index(&self) -> usize {
|
fn selected_index(&self) -> usize {
|
||||||
|
|
Loading…
Reference in a new issue