Save change to the UI Config file
MODIFY
WalletWasabi.Fluent/ViewModels/Settings/GeneralSettingsTabViewModel.cs
WalletWasabi.Fluent/ViewModels/Settings/GeneralSettingsTabViewModel.cs
@@ -37,6 +37,7 @@ namespace WalletWasabi.Fluent.ViewModels.Settings
_autoCopy = Services.UiConfig.Autocopy;
_customFee = Services.UiConfig.IsCustomFee;
_customChangeAddress = Services.UiConfig.IsCustomChangeAddress;
+ _osStartup = Services.UiConfig.IsOsStartup;
_selectedFeeDisplayFormat = Enum.IsDefined(typeof(FeeDisplayFormat), Services.UiConfig.FeeDisplayFormat)
? (FeeDisplayFormat)Services.UiConfig.FeeDisplayFormat
: FeeDisplayFormat.SatoshiPerByte;
@@ -58,7 +59,11 @@ namespace WalletWasabi.Fluent.ViewModels.Settings
this.WhenAnyValue(x => x.OsStartup)
.ObserveOn(RxApp.TaskpoolScheduler)
.Skip(1)
- .Subscribe(x => ModifyRegistry(x));
+ .Subscribe(x =>
+ {
+ Services.UiConfig.IsOsStartup = x;
+ ModifyRegistry(x);
+ });
this.WhenAnyValue(x => x.CustomFee)
.ObserveOn(RxApp.TaskpoolScheduler)

MODIFY
WalletWasabi.Gui/UiConfig.cs
WalletWasabi.Gui/UiConfig.cs
@@ -24,6 +24,7 @@ namespace WalletWasabi.Gui
private bool _darkModeEnabled;
private string? _lastSelectedWallet;
private string _windowState = "Normal";
+ private bool _isOsStartup;
public UiConfig() : base()
{
@@ -40,7 +41,8 @@ namespace WalletWasabi.Gui
x => x.FeeDisplayFormat,
x => x.LastSelectedWallet,
x => x.WindowState,
- (_, _, _, _, _, _, _, _) => Unit.Default)
+ x => x.IsOsStartup,
+ (_, _, _, _, _, _, _, _, _) => Unit.Default)
.Throttle(TimeSpan.FromMilliseconds(500))
.Skip(1) // Won't save on UiConfig creation.
.ObserveOn(RxApp.TaskpoolScheduler)
@@ -135,6 +137,14 @@ namespace WalletWasabi.Gui
set => RaiseAndSetIfChanged(ref _lastSelectedWallet, value);
}
+ [DefaultValue(false)]
+ [JsonProperty(PropertyName = "IsOsStartup", DefaultValueHandling = DefaultValueHandling.Populate)]
+ public bool IsOsStartup
+ {
+ get => _isOsStartup;
+ set => RaiseAndSetIfChanged(ref _isOsStartup, value);
+ }
+
[JsonProperty(PropertyName = "CoinListViewSortingPreference")]
[JsonConverter(typeof(SortingPreferenceJsonConverter))]
public SortingPreference CoinListViewSortingPreference { get; internal set; } = new SortingPreference(SortOrder.Increasing, "Amount");

Save change to the UI Config file