From 9eea75a35804e7d1b4e1cb5e76f88ade9532b639 Mon Sep 17 00:00:00 2001 From: Olaf Wintermann Date: Tue, 14 Jul 2026 19:35:35 +0200 Subject: [PATCH] add UI for file notes --- application/note/src/note.rs | 1 + application/note/src/window.rs | 31 ++++++++++++++++++++++++++++++- 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/application/note/src/note.rs b/application/note/src/note.rs index 6307b1e..3a70e93 100644 --- a/application/note/src/note.rs +++ b/application/note/src/note.rs @@ -152,6 +152,7 @@ impl Note { let tab = match model.kind { NoteType::PlainTextNote => NoteTypeTabView::TextArea, NoteType::MDTextNote => NoteTypeTabView::TextArea, + NoteType::File => NoteTypeTabView::File, _ => NoteTypeTabView::Empty }; self.note_type.set(tab as i64); diff --git a/application/note/src/window.rs b/application/note/src/window.rs index 14269ea..17af135 100644 --- a/application/note/src/window.rs +++ b/application/note/src/window.rs @@ -266,6 +266,34 @@ pub fn create_window(app: &App, ctx: &AppContext) -> UiObject, collection_id: i32) -> pub enum NoteTypeTabView { Empty = 0, - TextArea = 1 + TextArea = 1, + File = 2, } #[derive(Default)] -- 2.52.0