Titano: Library completion, remote editing, accessibility and RTL pass, remaining translations #3

Merged
Alby96 merged 117 commits from claude/keen-knuth-uhxv8w into main 2026-10-12 09:24:21 +02:00
Showing only changes of commit 9609b8776e - Show all commits
@@ -391,6 +391,7 @@ public sealed class RetagDialogViewModel : ArchiveDialogViewModel
private async Task ApplyAsync() private async Task ApplyAsync()
{ {
var changes = Changes(); var changes = Changes();
var (add, remove) = (Retag.Parse(Add.Text), Retag.Parse(Remove.Text));
var run = _run = new CancellationTokenSource(); var run = _run = new CancellationTokenSource();
var done = 0; var done = 0;
ClearError(); ClearError();
@@ -399,9 +400,10 @@ public sealed class RetagDialogViewModel : ArchiveDialogViewModel
{ {
for (; done < changes.Count && !run.IsCancellationRequested; done++) for (; done < changes.Count && !run.IsCancellationRequested; done++)
{ {
var (s, tags) = changes[done]; var id = changes[done].Sequence.Id;
BusyText = Loc.L("Archive.Rename.Applying", Formatting.Count(done + 1), Formatting.Count(changes.Count)); BusyText = Loc.L("Archive.Rename.Applying", Formatting.Count(done + 1), Formatting.Count(changes.Count));
await Task.Run(() => _archives.SetSequenceInfoAsync(s.Id, s.Title, tags, s.Rating, s.Notes)); // The tags as they are now (the set may predate an edit or a sync); title, rating and notes stay untouched.
await Task.Run(() => _archives.EditSequenceInfoAsync(id, info => info with { Tags = Retag.Apply(info.Tags, add, remove) }));
} }
Log.Info("archive", $"Retag: {done} of {changes.Count} sequence(s) changed"); Log.Info("archive", $"Retag: {done} of {changes.Count} sequence(s) changed");
await _applied(done); await _applied(done);