Skip UiConfig save if not yet loaded.
MODIFY
WalletWasabi.Gui/MainWindow.xaml.cs
WalletWasabi.Gui/MainWindow.xaml.cs
@@ -100,6 +100,8 @@ namespace WalletWasabi.Gui
if (closeApplication)
{
try
+ {
+ if (Global.UiConfig != null) // UiConfig not yet loaded.
{
Global.UiConfig.WindowState = WindowState;
Global.UiConfig.Width = Width;
@@ -107,6 +109,7 @@ namespace WalletWasabi.Gui
await Global.UiConfig.ToFileAsync();
Logging.Logger.LogInfo<UiConfig>("UiConfig is saved.");
}
+ }
catch (Exception ex)
{
Logging.Logger.LogWarning<MainWindow>(ex);

Skip UiConfig save if not yet loaded.