From: Olaf Wintermann Date: Tue, 14 Jul 2026 17:35:35 +0000 (+0200) Subject: add UI for file notes X-Git-Url: https://uap-core.de/gitweb/?a=commitdiff_plain;h=9eea75a35804e7d1b4e1cb5e76f88ade9532b639;p=note.git add UI for file notes --- 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)]