mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-01 02:35:37 +01:00
Keep the readout note copy guard concise
This commit is contained in:
1 parent
4b39f72f51
commit
40bb9da51b
1 file changed
+4
-4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user