rename variable and property
MODIFY
WalletWasabi.Fluent/ViewModels/Settings/GeneralSettingsTabViewModel.cs
WalletWasabi.Fluent/ViewModels/Settings/GeneralSettingsTabViewModel.cs
@@ -27,7 +27,7 @@ namespace WalletWasabi.Fluent.ViewModels.Settings
[AutoNotify] private bool _customFee;
[AutoNotify] private bool _customChangeAddress;
[AutoNotify] private FeeDisplayFormat _selectedFeeDisplayFormat;
- [AutoNotify] private bool _osStartup;
+ [AutoNotify] private bool _runOnSystemStartup;
public GeneralSettingsTabViewModel()
{
@@ -35,7 +35,7 @@ namespace WalletWasabi.Fluent.ViewModels.Settings
_autoCopy = Services.UiConfig.Autocopy;
_customFee = Services.UiConfig.IsCustomFee;
_customChangeAddress = Services.UiConfig.IsCustomChangeAddress;
- _osStartup = Services.UiConfig.IsOsStartup;
+ _runOnSystemStartup = Services.UiConfig.RunOnSystemStartup;
_selectedFeeDisplayFormat = Enum.IsDefined(typeof(FeeDisplayFormat), Services.UiConfig.FeeDisplayFormat)
? (FeeDisplayFormat)Services.UiConfig.FeeDisplayFormat
: FeeDisplayFormat.SatoshiPerByte;
@@ -54,14 +54,18 @@ namespace WalletWasabi.Fluent.ViewModels.Settings
.Skip(1)
.Subscribe(x => Services.UiConfig.Autocopy = x);
- this.WhenAnyValue(x => x.OsStartup)
+ this.WhenAnyValue(x => x.RunOnSystemStartup)
.ObserveOn(RxApp.TaskpoolScheduler)
.Skip(1)
.Subscribe(x =>
{
if (WalletWasabi.Helpers.StartupHelper.TryModifyStartupSetting(x))
{
- Services.UiConfig.IsOsStartup = x;
+ Services.UiConfig.RunOnSystemStartup = x;
+ }
+ else
+ {
+ // Show notification with error message!
};
});

MODIFY
WalletWasabi.Fluent/Views/Settings/GeneralSettingsTabView.axaml
WalletWasabi.Fluent/Views/Settings/GeneralSettingsTabView.axaml
<DockPanel>
<TextBlock Text="Start Wasabi with the system" />
- <ToggleSwitch IsChecked="{Binding OsStartup}" />
+ <ToggleSwitch IsChecked="{Binding RunOnSystemStartup}" />
</DockPanel>
<DockPanel>

MODIFY
WalletWasabi.Gui/UiConfig.cs
WalletWasabi.Gui/UiConfig.cs
@@ -24,7 +24,7 @@ namespace WalletWasabi.Gui
private bool _darkModeEnabled;
private string? _lastSelectedWallet;
private string _windowState = "Normal";
- private bool _isOsStartup;
+ private bool _runOnSystemStartup;
public UiConfig() : base()
{
@@ -41,7 +41,7 @@ namespace WalletWasabi.Gui
x => x.FeeDisplayFormat,
x => x.LastSelectedWallet,
x => x.WindowState,
- x => x.IsOsStartup,
+ x => x.RunOnSystemStartup,
(_, _, _, _, _, _, _, _, _) => Unit.Default)
.Throttle(TimeSpan.FromMilliseconds(500))
.Skip(1) // Won't save on UiConfig creation.
@@ -138,11 +138,11 @@ namespace WalletWasabi.Gui
}
[DefaultValue(false)]
- [JsonProperty(PropertyName = "IsOsStartup", DefaultValueHandling = DefaultValueHandling.Populate)]
- public bool IsOsStartup
+ [JsonProperty(PropertyName = "RunOnSystemStartup", DefaultValueHandling = DefaultValueHandling.Populate)]
+ public bool RunOnSystemStartup
{
- get => _isOsStartup;
- set => RaiseAndSetIfChanged(ref _isOsStartup, value);
+ get => _runOnSystemStartup;
+ set => RaiseAndSetIfChanged(ref _runOnSystemStartup, value);
}
[JsonProperty(PropertyName = "CoinListViewSortingPreference")]

rename variable and property