From: Olaf Wintermann Date: Sun, 2 Aug 2026 14:47:32 +0000 (+0200) Subject: fix note.load_content overrides fixed title X-Git-Url: https://uap-core.de/gitweb/?a=commitdiff_plain;h=629bcc5a13af0d66f208e90f550ad0f639bfb731;p=note.git fix note.load_content overrides fixed title --- diff --git a/application/note/src/note.rs b/application/note/src/note.rs index 26a353b..54b2176 100644 --- a/application/note/src/note.rs +++ b/application/note/src/note.rs @@ -218,7 +218,9 @@ impl Note { pub fn init_content(&mut self, content: NoteContentRet) { self.content_id = content.content_id; self.text.set(content.text.as_str()); - self.update_title(content.text.as_str(), false); + if !self.fixed_title { + self.update_title(content.text.as_str(), false); + } self.local_path = content.local_path; self.local_lastmodified = content.local_lastmodified; }