]> uap-core.de Git - note.git/commitdiff
fix note.load_content overrides fixed title
authorOlaf Wintermann <olaf.wintermann@gmail.com>
Sun, 2 Aug 2026 14:47:32 +0000 (16:47 +0200)
committerOlaf Wintermann <olaf.wintermann@gmail.com>
Sun, 2 Aug 2026 14:47:32 +0000 (16:47 +0200)
application/note/src/note.rs

index 26a353bbcab1826f93100c6502eee86ab8f51758..54b2176406c129328e17e8073f99b12570883bfd 100644 (file)
@@ -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;
     }