Handle multiple save
MODIFY
WalletWasabi.Fluent/ViewModels/Settings/BitcoinTabViewModel.cs
WalletWasabi.Fluent/ViewModels/Settings/BitcoinTabViewModel.cs
@@ -36,7 +36,7 @@ namespace WalletWasabi.Fluent.ViewModels.Settings
x => x.StartLocalBitcoinCoreOnStartup,
x => x.StopLocalBitcoinCoreOnShutdown)
.ObserveOn(RxApp.TaskpoolScheduler)
- .Subscribe(_ => Save());
+ .Subscribe(_ => RequestSave());
}
public Version BitcoinCoreVersion => Constants.BitcoinCoreVersion;

MODIFY
WalletWasabi.Fluent/ViewModels/Settings/NetworkTabViewModel.cs
WalletWasabi.Fluent/ViewModels/Settings/NetworkTabViewModel.cs
@@ -28,7 +28,7 @@ namespace WalletWasabi.Fluent.ViewModels.Settings
x => x.UseTor,
x => x.TerminateTorOnExit)
.ObserveOn(RxApp.TaskpoolScheduler)
- .Subscribe(_ => Save());
+ .Subscribe(_ => RequestSave());
}
public bool UseTor

MODIFY
WalletWasabi.Fluent/ViewModels/Settings/PrivacyTabViewModel.cs
WalletWasabi.Fluent/ViewModels/Settings/PrivacyTabViewModel.cs
@@ -22,7 +22,7 @@ namespace WalletWasabi.Fluent.ViewModels.Settings
x => x.MediumPrivacyLevel,
x => x.StrongPrivacyLevel)
.ObserveOn(RxApp.TaskpoolScheduler)
- .Subscribe(_ => Save());
+ .Subscribe(_ => RequestSave());
this.WhenAnyValue(x => x.MinimalPrivacyLevel)
.Subscribe(

MODIFY
WalletWasabi.Fluent/ViewModels/Settings/SettingsPageViewModel.cs
WalletWasabi.Fluent/ViewModels/Settings/SettingsPageViewModel.cs
@@ -35,13 +35,6 @@ namespace WalletWasabi.Fluent.ViewModels.Settings
// TODO: Restart wasabi message
IsModified = !Global.Config.AreDeepEqual(config);
-
- // TextBoxLostFocusCommand = ReactiveCommand.Create(Save);
-
- // Observable
- // .Merge(TextBoxLostFocusCommand.ThrownExceptions)
- // .ObserveOn(RxApp.TaskpoolScheduler)
- // .Subscribe(ex => Logger.LogError(ex));
}
public Global Global { get; }
@@ -51,8 +44,6 @@ namespace WalletWasabi.Fluent.ViewModels.Settings
public NetworkTabViewModel NetworkTab { get; }
public BitcoinTabViewModel BitcoinTab { get; }
- public ReactiveCommand<Unit, Unit> TextBoxLostFocusCommand { get; }
-
public bool IsModified
{
get => _isModified;

Handle multiple save