mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-11 21:00:35 +00:00
Dismiss theme_selector on esc (#3502)
This commit is contained in:
commit
d02ff42608
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.selection_completed = true;
|
||||
}
|
||||
|
||||
self.view
|
||||
.update(cx, |_, cx| cx.emit(DismissEvent))
|
||||
.log_err();
|
||||
}
|
||||
|
||||
fn selected_index(&self) -> usize {
|
||||
|
|
Loading…
Reference in a new issue