Only compute placeholder text once

This commit is contained in:
Nathan Sobo
2023-12-20 14:47:56 -07:00
parent 9acb5825e6
commit d499cccebb
2 changed files with 48 additions and 53 deletions
+4
View File
@@ -1998,6 +1998,10 @@ impl Editor {
self.collaboration_hub = Some(hub);
}
pub fn placeholder_text(&self) -> Option<&str> {
self.placeholder_text.as_deref()
}
pub fn set_placeholder_text(
&mut self,
placeholder_text: impl Into<Arc<str>>,