Indicate when file has changed on disk
This commit is contained in:
@ -8,6 +8,7 @@ use std::{
|
||||
sync::Arc,
|
||||
};
|
||||
|
||||
use arboard::Clipboard;
|
||||
use base64::{Engine, prelude::BASE64_STANDARD};
|
||||
use canvas_rasterizer::CanvasRasterizer;
|
||||
use disk_format::{DiskFormat, RawStroke, RawStrokeHeader, f16_le};
|
||||
@ -163,6 +164,12 @@ impl Handwriting {
|
||||
}
|
||||
});
|
||||
|
||||
if ui.button("copy").clicked() {
|
||||
let text = self.to_string();
|
||||
// TODO: move to a job
|
||||
let _ = Clipboard::new().unwrap().set_text(text);
|
||||
}
|
||||
|
||||
let vertex_count: usize = self.e.mesh.indices.len() / 3;
|
||||
ui.label(format!("vertices: {vertex_count}"));
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user