Save configuration in different thread
MODIFY
WalletWasabi.Gui/Tabs/SettingsViewModel.cs
WalletWasabi.Gui/Tabs/SettingsViewModel.cs
@@ -3,6 +3,7 @@ using ReactiveUI;
using Avalonia;
using System;
using System.Collections.Generic;
+using Avalonia.Threading;
namespace WalletWasabi.Gui.Tabs
{
@@ -38,7 +39,11 @@ namespace WalletWasabi.Gui.Tabs
var config = Global.Config.Clone();
config.Network = NBitcoin.Network.GetNetwork(value);
- config.ToFileAsync().RunSynchronously();
+ Dispatcher.UIThread.Post(async () =>
+ {
+ await config.ToFileAsync();
+ });
+
this.RaiseAndSetIfChanged(ref _network, value);
}
}

Save configuration in different thread