fix(app): store and close the editor before its sequence moves to the trash

Delete first lets the editor of a sequence it moves store its last edit and
close (or stops when the user keeps an edit that cannot be stored), and reports
a sidecar written by a newer Titano instead of failing. A remote card whose
proxy download ended before it was recorded opens at once, as on the Server
screen; the Library reads its saved views again on refresh; the CSV writer of
the Library and the Archive manager moves into LibraryCsv.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
Claude committed 2026-10-03 16:44:03 +00:00
1 parent fb0d8cceae
commit 743418d944
4 files changed
+70 -41

No files matched your search

+1 -1
View File
@@ -742,7 +742,7 @@ public sealed class ArchiveViewModel : SectionViewModel
var folder = Services.Dialogs.PickFolder(Loc.L("Library.Export.Title"));
if (folder is null || set.Count == 0) return;
var path = Path.Combine(folder, $"Titano sequences {DateTime.Now:yyyy-MM-dd HHmm}.csv");
var csv = LibraryViewModel.Csv(set);
var csv = LibraryCsv.Write(set);
await Task.Run(() => AtomicFile.WriteAllText(path, csv));
Shell.Notify(Loc.L("Library.Export.Done"), Path.GetFileName(path), Loc.L("Library.Export.Show"), Loc.L("Tooltips.Library.ShowExport"),
() => ShellActions.Reveal(path));