Skip to content

Commit

Permalink
Merge pull request #2921 from vexx32/2872-interactive-ack-all
Browse files Browse the repository at this point in the history
(#2872) Fix selecting All for interactive prompts
  • Loading branch information
corbob authored Nov 29, 2022
2 parents fea9589 + b14b0d8 commit 2f4fee9
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,14 @@ public void reset_config(bool removeBackup = false)

try
{
if (property.Name == "PromptForConfirmation")
{
// We do not overwrite this value between backups as it is intended to be a global setting;
// if a user has selected a "[A] yes to all" prompt interactively, this option is
// set and should be retained for the duration of the operations.
continue;
}

var originalValue = property.GetValue(backup, new object[0]);

if (removeBackup || property.DeclaringType.IsPrimitive || property.DeclaringType.IsValueType || property.DeclaringType == typeof(string))
Expand Down

0 comments on commit 2f4fee9

Please sign in to comment.