Keep the readout note copy guard concise

This commit is contained in:
yoriswind committed 2026-11-26 15:16:23 -08:00
1 parent 4b39f72f51
commit 40bb9da51b
1 file changed
+4 -4
+4 -4
View File
@@ -104,10 +104,10 @@ fn paint_block(ui: &mut Ui, p: &PaintLines) -> Option<String> {
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