From: Olaf Wintermann Date: Thu, 3 Sep 2026 18:41:04 +0000 (+0200) Subject: open attachments window when you click on a attachment in the note view X-Git-Url: https://uap-core.de/gitweb/?a=commitdiff_plain;h=HEAD;p=note.git open attachments window when you click on a attachment in the note view --- diff --git a/application/note/src/attachments_window.rs b/application/note/src/attachments_window.rs index 00cda9c..64c0d2f 100644 --- a/application/note/src/attachments_window.rs +++ b/application/note/src/attachments_window.rs @@ -48,6 +48,7 @@ pub fn attachments_window_create(note_id: i32, selected_attachment: Option) }); }); }); + obj.show(); } diff --git a/application/note/src/window.rs b/application/note/src/window.rs index 6d877a4..e045148 100644 --- a/application/note/src/window.rs +++ b/application/note/src/window.rs @@ -34,6 +34,7 @@ use crate::{App, AppStates}; use entity::collection::{CollectionType, Model as Collection, Node}; use ui_rs::ui::widget::Widget; use crate::attachment::Attachment; +use crate::attachments_window::attachments_window_create; use crate::newnotebook::new_notebook_dialog; use crate::notebook::{notelist_getvalue, Notebook, NotebookItem}; @@ -293,14 +294,18 @@ pub fn create_window(app: &App, ctx: &AppContext) -> UiObject