Restore recovery sessions without a success popup
This commit is contained in:
parent
3dff673d0d
commit
89697bd1a2
|
|
@ -177,16 +177,16 @@ impl Editor {
|
|||
let result = result.and_then(|loaded| {
|
||||
if let Some((prepared, path, time)) = loaded {
|
||||
self.install_prepared(prepared)?;
|
||||
self.files.message = Some(if recovery {
|
||||
"Recovery restored".into()
|
||||
self.files.message = if recovery {
|
||||
None
|
||||
} else {
|
||||
format!(
|
||||
Some(format!(
|
||||
"Opened {}",
|
||||
path.as_ref()
|
||||
.map(|p| p.display().to_string())
|
||||
.unwrap_or_default()
|
||||
)
|
||||
});
|
||||
))
|
||||
};
|
||||
self.files.project_path = path;
|
||||
self.files.manual_saved_at = time;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -223,6 +223,7 @@ mod tests {
|
|||
restored.restore_recovery(&ctx, path);
|
||||
restored.wait_project_job();
|
||||
assert!(restored.recovery.error.is_none());
|
||||
assert!(restored.files.message.is_none());
|
||||
assert_eq!(restored.project(), app.project());
|
||||
assert_eq!(restored.files.project_path, Some(named));
|
||||
assert_eq!(restored.files.manual_saved_at, app.files.manual_saved_at);
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@
|
|||
|
||||
## Unreleased
|
||||
|
||||
- Restore recovery sessions silently instead of opening a “Recovery restored” message. Keep recovery failures and retry information visible; regression coverage checks restored edits and absence of the success popup.
|
||||
|
||||
- Investigate Aquilon/LivePremier compatibility against the upstream web-control implementation; document firmware-specific geometry, bank and apply paths, saved-link constraints, and the staged adapter/acceptance plan. Research only: no Aquilon support or hardware verification claimed.
|
||||
|
||||
- Add a Recent machines picker for the last four successful connections, saved across restarts with distinct ports and most-recent-first ordering. Selecting an entry reads the device immediately; failed attempts do not displace history. Settings v8 migrates v1–v7 with empty history; tests cover ordering, deduplication, failures, persistence and validation.
|
||||
|
|
|
|||
|
|
@ -254,7 +254,8 @@ recovery copy, so save a named copy when you want to keep multiple projects.
|
|||
|
||||
Recovery contains applied project values, not undo history or unfinished text,
|
||||
Source/import drafts. A crash can lose edits since the last checkpoint; normal
|
||||
exit cancels unfinished canvas gestures. Project-menu status shows the recovery
|
||||
exit cancels unfinished canvas gestures. Successful restoration is silent. Recovery failures still display an actionable
|
||||
message. Project-menu status shows the recovery
|
||||
path and failures. A corrupt/unsupported recovery file is preserved with autosave
|
||||
paused; Retry recovery attempts to load it again. For a write failure, Retry
|
||||
attempts to save again. New project explicitly replaces the recovery copy.
|
||||
|
|
|
|||
Loading…
Reference in New Issue