diff --git a/src/Titano.App/Archive/ArchiveDialogViewModels.cs b/src/Titano.App/Archive/ArchiveDialogViewModels.cs
index fe43b98c..8415a930 100644
--- a/src/Titano.App/Archive/ArchiveDialogViewModels.cs
+++ b/src/Titano.App/Archive/ArchiveDialogViewModels.cs
@@ -174,6 +174,13 @@ public sealed class RenameDialogViewModel : ArchiveDialogViewModel
public ICommand ApplyCommand { get; }
+ public override void Dispose()
+ {
+ _delay.Stop();
+ _planning?.Cancel();
+ base.Dispose();
+ }
+
/// The dry run of the current template (the engine's plan; nothing changes on disk).
public async Task PlanAsync()
{
diff --git a/src/Titano.App/Sections/ArchiveView.xaml b/src/Titano.App/Sections/ArchiveView.xaml
index 8a8753e8..ddf723ce 100644
--- a/src/Titano.App/Sections/ArchiveView.xaml
+++ b/src/Titano.App/Sections/ArchiveView.xaml
@@ -163,12 +163,12 @@
ToolTip="{Binding ArchiveToolTip}" AutomationProperties.Name="{l:Loc Archive.Toolbar.Archive}" Margin="0,0,8,8" />
-
+
-
+
-
+
diff --git a/src/Titano.App/Sections/ArchiveViewModel.cs b/src/Titano.App/Sections/ArchiveViewModel.cs
index 7027baf4..41c13dc6 100644
--- a/src/Titano.App/Sections/ArchiveViewModel.cs
+++ b/src/Titano.App/Sections/ArchiveViewModel.cs
@@ -126,6 +126,13 @@ public sealed class ArchiveViewModel : SectionViewModel
/// "Last scan 29/09/2026 07:12 ยท 14 min".
public string LastScanText { get => _lastScanText; private set => Set(ref _lastScanText, value); }
+ public string ScanToolTip => WhenOnline("Tooltips.Archive.Scan");
+ public string VerifyToolTip => WhenOnline("Tooltips.Archive.Verify");
+ public string OrphansToolTip => WhenOnline("Tooltips.Archive.Orphans");
+ public string RenameSetToolTip => WhenOnline("Tooltips.Archive.SetRename");
+ public string MoveSetToolTip => WhenOnline("Tooltips.Archive.SetMove");
+ public string RetagSetToolTip => WhenOnline("Tooltips.Archive.SetRetag");
+
public ICommand ScanCommand { get; }
public ICommand RebuildCommand { get; }
public ICommand VerifyCommand { get; }
@@ -404,6 +411,9 @@ public sealed class ArchiveViewModel : SectionViewModel
private bool IsOnline() => _archive is not null && _availability == ArchiveAvailability.Online;
+ /// A command's tooltip, or why it is disabled: these commands write to the archive or read all of it.
+ private string WhenOnline(string key) => _archive is null || IsOnline() ? Loc.L(key) : Loc.L("Archive.Blocked.NotOnline");
+
private bool HasSet() => _archive is not null && _tree is not null && Set().Count > 0;
private IReadOnlyList Set() => _tree is null ? [] : ArchiveTree.SetOf(_tree, _selection);