From dcdde639b9aaf20ccf56ab562ad1c55176bc990e Mon Sep 17 00:00:00 2001 From: Olaf Wintermann Date: Thu, 3 Sep 2026 20:41:04 +0200 Subject: [PATCH] open attachments window when you click on a attachment in the note view --- application/note/src/attachments_window.rs | 1 + application/note/src/window.rs | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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