Show notification if something goes wrong.
MODIFY
WalletWasabi.Fluent/ViewModels/Settings/GeneralSettingsTabViewModel.cs
WalletWasabi.Fluent/ViewModels/Settings/GeneralSettingsTabViewModel.cs
@@ -57,7 +57,7 @@ namespace WalletWasabi.Fluent.ViewModels.Settings
this.WhenAnyValue(x => x.RunOnSystemStartup)
.ObserveOn(RxApp.TaskpoolScheduler)
.Skip(1)
- .Subscribe(x =>
+ .Subscribe(async x =>
{
if (WalletWasabi.Helpers.StartupHelper.TryModifyStartupSetting(x))
{
@@ -65,7 +65,7 @@ namespace WalletWasabi.Fluent.ViewModels.Settings
}
else
{
- // Show notification with error message!
+ await ShowErrorAsync(Title, WalletWasabi.Helpers.StartupHelper.StartupErrorMessage, "Something went wrong.");
}
});

MODIFY
WalletWasabi/Helpers/StartupHelper.cs
WalletWasabi/Helpers/StartupHelper.cs
@@ -8,6 +8,8 @@ namespace WalletWasabi.Helpers
{
public static class StartupHelper
{
+ public const string StartupErrorMessage = "Something went wrong while trying to make your changes.";
+
public static bool TryModifyStartupSetting(bool isWasabiStartsWithOS)
{
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))

Show notification if something goes wrong.