Add disabled style for prompt editor after confirming

This commit is contained in:
Antonio Scandurra 2023-08-26 12:07:03 +02:00
parent 658d616b96
commit 55bf45d265
4 changed files with 28 additions and 3 deletions

View file

@ -1606,6 +1606,15 @@ impl Editor {
self.read_only = read_only;
}
pub fn set_field_editor_style(
&mut self,
style: Option<Arc<GetFieldEditorTheme>>,
cx: &mut ViewContext<Self>,
) {
self.get_field_editor_theme = style;
cx.notify();
}
pub fn replica_id_map(&self) -> Option<&HashMap<ReplicaId, ReplicaId>> {
self.replica_id_mapping.as_ref()
}