fix(archive): an explicit dry run replaces the one still waiting on typing
Setting the Move template and asking for its dry run left the typing delay running; when it fired it threw the finished plan away and disabled Apply until a second identical dry run came back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
1 file changed
+5
-1
@@ -254,9 +254,13 @@ public sealed class RenameDialogViewModel : ArchiveDialogViewModel
|
|||||||
base.Dispose();
|
base.Dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>The dry run of the current template (the engine's plan; nothing changes on disk); it clears the last failure.</summary>
|
/// <summary>
|
||||||
|
/// The dry run of the current template (the engine's plan; nothing changes on disk); it clears the last failure and
|
||||||
|
/// stands in for a dry run still waiting on typing, which would otherwise throw this plan away.
|
||||||
|
/// </summary>
|
||||||
public Task PlanAsync()
|
public Task PlanAsync()
|
||||||
{
|
{
|
||||||
|
_delay.Stop();
|
||||||
ClearError();
|
ClearError();
|
||||||
return DryRunAsync();
|
return DryRunAsync();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user