From 40bb9da51bcb3d6c4f4ba3b0e91d0e65a37ceb3c Mon Sep 17 00:00:00 2001 From: yoriswind Date: Thu, 26 Nov 2026 15:16:23 -0800 Subject: [PATCH] Keep the readout note copy guard concise --- crates/ui-egui/src/panels/info.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/ui-egui/src/panels/info.rs b/crates/ui-egui/src/panels/info.rs index b86e502167..c12aa50db8 100644 --- a/crates/ui-egui/src/panels/info.rs +++ b/crates/ui-egui/src/panels/info.rs @@ -104,10 +104,10 @@ fn paint_block(ui: &mut Ui, p: &PaintLines) -> Option { copy = Some(v.clone()); } } - if let Some(note) = &p.note { - if super::doc_info::copy_value(ui, note, note, false) { - copy = Some(note.clone()); - } + if let Some(note) = &p.note + && super::doc_info::copy_value(ui, note, note, false) + { + copy = Some(note.clone()); } }); copy