Skip to content

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

Merge upstream main into integration-r3

aiongge80c3e3e131b
diff --cc crates/ui-egui/src/dialogs/updates_ui.rs
index 17b06849a,c5dd6cd3a..27f7d0c13
--- a/crates/ui-egui/src/dialogs/updates_ui.rs
+++ b/crates/ui-egui/src/dialogs/updates_ui.rs
@@@ -103,25 -109,29 +109,29 @@@ pub(crate) fn show(app: &mut Lightcraft
Action::Close => ctx.send_viewport_cmd(egui::ViewportCommand::Close),
Action::None => {}
}
- // The window answers Help ▸ Check for Updates, so it follows the updater's status.
+ // A found update opens the startup prompt and leaves the status idle, which ends the result dialog.
let rt = &mut app.updates_rt;
- (rt.manual_window_open, rt.status_message) = match rt.updater.status() {
- Status::Idle => (false, None),
- Status::Checking => (true, Some(crate::i18n::tr("Checking for updates…").to_string())),
- Status::UpToDate => (
- true,
- Some(
- crate::i18n::tr("LightCraft {version} is currently the newest version available.")
- .replace("{version}", env!("CARGO_PKG_VERSION")),
- ),
- ),
- Status::Failed(e) => (true, Some(crate::i18n::tr("Could not check for updates:\n{error}").replace("{error}", e))),
- };
+ if rt.manual_window_open {
+ let dialog = CheckResultDialog::new(&crate::UPDATE_APP, env!("CARGO_PKG_VERSION"));
+ match dialog.show(ctx, rt.updater.status()) {
+ CheckResultResponse::None => {}
+ CheckResultResponse::Close => rt.manual_window_open = false,
+ CheckResultResponse::CheckAgain => rt.check_requested = true,
+ }
+ if matches!(rt.updater.status(), Status::Idle) {
+ rt.manual_window_open = false;
+ }
+ }
+ // Closing the dialog dismisses the outcome it showed.
+ if !rt.manual_window_open {
+ rt.updater.dismiss_status();
+ }
}
+ #[cfg(target_arch = "wasm32")]
if app.updates_rt.manual_window_open {
let mut open = true;
- egui::Window::new(crate::i18n::tr("LightCraft Updates"))
+ let shown = egui::Window::new(crate::i18n::tr("LightCraft Updates"))
.open(&mut open)
.collapsible(false)
.resizable(false)
diff --cc docs/target-app-parity.md
index 8346992c0,92e9d343d..757ed9055
--- a/docs/target-app-parity.md
+++ b/docs/target-app-parity.md
@@@ -268,7 -268,7 +268,7 @@@ verification. Calibrated on this reposi
The previous estimate (2026-10-02, kept below) was ≈ 270–505 h to full parity. It counted checklist
rows only. New evidence since: the target's own lists (≈ 1,000 dedicated camera models, 3,635 lens
profiles, 37 AI models, 16 languages) measured from the installed bundle; per-maker verification
- counts; that CI then tested only FreeBSD; and the standard's added dimensions (localization, stability,
-counts; that CI tests only FreeBSD; and the added dimensions (localization, stability,
++counts; that CI then tested only FreeBSD; and the added dimensions (localization, stability,
platforms, ecosystem). The raw-codec package it estimated at 40–80 h took roughly that and closed
most of its list; what remains is the data-heavy part (colour, lenses, models) it did not count.