Move extra logic out of non-UI thread
MODIFY
WalletWasabi.Fluent.Desktop/Program.cs
WalletWasabi.Fluent.Desktop/Program.cs
@@ -165,7 +165,6 @@ public class Program
/// </summary>
private static async Task TerminateApplicationAsync()
{
- MainViewModel.Instance.StatusIcon.Dispose();
Logger.LogSoftwareStopped("Wasabi GUI");
if (Global is { } global)
@@ -177,6 +176,7 @@ public class Program
private static void TerminateApplication()
{
MainViewModel.Instance.ClearStacks();
+ MainViewModel.Instance.StatusIcon.Dispose();
}
private static void TaskScheduler_UnobservedTaskException(object? sender, UnobservedTaskExceptionEventArgs e)

Move extra logic out of non-UI thread