saving to light tmp file to speed up annotation

This commit is contained in:
2022-02-17 11:32:53 +01:00
parent c049f3c50b
commit c9cbafb560
4 changed files with 113 additions and 30 deletions

View File

@@ -132,6 +132,11 @@ fn build_ui(app: &Application) {
image_ui.window.add_action(&skip_focus);
image_ui.window.add_action(&back_focus);
let _sender = sender.clone();
app.connect_shutdown(move |_| {
_sender.send(Message::Quit).unwrap();
});
image_ui.show();
receiver.attach(None, move |msg| {
eprintln!("Received message: {:?}", msg);