fix yes/no answer binding
MODIFY
WalletWasabi.Fluent/Controls/QuestionControl.axaml
WalletWasabi.Fluent/Controls/QuestionControl.axaml
<ControlTemplate>
<DockPanel VerticalAlignment="Center" HorizontalAlignment="Stretch">
<DockPanel HorizontalAlignment="Stretch" MaxWidth="500" DockPanel.Dock="Bottom">
- <Button HorizontalAlignment="Left" Content="No" Classes="yesNo" Command="{TemplateBinding YesCommand}" />
- <Button HorizontalAlignment="Right" Content="Yes" Classes="action yesNo" IsDefault="True" Command="{TemplateBinding NoCommand}" />
+ <Button HorizontalAlignment="Left" Content="No" Classes="yesNo" Command="{TemplateBinding NoCommand}" />
+ <Button HorizontalAlignment="Right" Content="Yes" Classes="action yesNo" IsDefault="True" Command="{TemplateBinding YesCommand}" />
</DockPanel>
<TextBlock Name="PART_Question"
Text="{TemplateBinding Text}"

MODIFY
WalletWasabi.Fluent/Controls/QuestionControl.axaml.cs
WalletWasabi.Fluent/Controls/QuestionControl.axaml.cs
@@ -43,6 +43,4 @@ namespace WalletWasabi.Fluent.Controls
set => SetValue(TextProperty, value);
}
}
-
-
}
\ No newline at end of file

MODIFY
WalletWasabi.Fluent/ViewModels/Dialogs/EnterPasswordViewModel.cs
WalletWasabi.Fluent/ViewModels/Dialogs/EnterPasswordViewModel.cs
@@ -35,7 +35,6 @@ namespace WalletWasabi.Fluent.ViewModels.Dialogs
this.RaisePropertyChanged(nameof(Password));
this.RaisePropertyChanged(nameof(ConfirmPassword));
-
return IsDialogOpen &&
((enableEmpty && string.IsNullOrEmpty(Password) && string.IsNullOrEmpty(ConfirmPassword)) ||
(!string.IsNullOrEmpty(Password) && !string.IsNullOrEmpty(ConfirmPassword) && !Validations.Any));

MODIFY
WalletWasabi.Fluent/ViewModels/Login/PasswordFinder/ContainsNumbersViewModel.cs
WalletWasabi.Fluent/ViewModels/Login/PasswordFinder/ContainsNumbersViewModel.cs
@@ -8,7 +8,6 @@ namespace WalletWasabi.Fluent.ViewModels.Login.PasswordFinder
{
public class ContainsNumbersViewModel : RoutableViewModel
{
-
public ContainsNumbersViewModel(PasswordFinderOptions options)
{
Options = options;

MODIFY
WalletWasabi.Fluent/ViewModels/Login/PasswordFinder/SearchPasswordViewModel.cs
WalletWasabi.Fluent/ViewModels/Login/PasswordFinder/SearchPasswordViewModel.cs
@@ -47,7 +47,6 @@ namespace WalletWasabi.Fluent.ViewModels.Login.PasswordFinder
});
}
-
private void SetStatus(int percentage, TimeSpan remainingTime)
{
RemainingTimeReceived = true;

fix yes/no answer binding