Skip to content

LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust

Web: a finished save repaints, so the title drops its unsaved mark (#2397)

Bruno-Alumn45f61ef5efd2
diff --git a/apps/lightcraft-web/src/web.rs b/apps/lightcraft-web/src/web.rs
index 93c8b434c..168ca4784 100644
--- a/apps/lightcraft-web/src/web.rs
+++ b/apps/lightcraft-web/src/web.rs
@@ -270,6 +270,8 @@ async fn flush(files: Files, backend: Backend, dir: String, flushing: Rc<Cell<bo
}
}
flushing.set(false);
+ // the page title drops its unsaved • now, even when nothing else wakes the page
+ request_repaint();
}
/// Everything loaded before the UI starts.