Dismiss theme_selector on esc

This commit is contained in:
Federico Dionisi 2023-12-05 19:31:20 +01:00
parent 2299730538
commit ceb5d0c69e
No known key found for this signature in database
GPG key ID: 4EE411E89FA2BF41

View file

@ -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 {