Avoid deadlock
MODIFY
WalletWasabi.Fluent/ViewModels/Settings/GeneralSettingsTabViewModel.cs
WalletWasabi.Fluent/ViewModels/Settings/GeneralSettingsTabViewModel.cs
@@ -68,7 +68,7 @@ namespace WalletWasabi.Fluent.ViewModels.Settings
{
Logger.LogError(ex);
RunOnSystemStartup = !RunOnSystemStartup;
- await ShowErrorAsync(Title, "Couldn't save your change, please see the logs for further information.", "Error occured.");
+ await ShowErrorAsync(Title, "Couldn't save your change, please see the logs for further information.", "Error occurred.");
}
});

MODIFY
WalletWasabi.Tests/UnitTests/StartWasabiOnSystemStartupTests.cs
WalletWasabi.Tests/UnitTests/StartWasabiOnSystemStartupTests.cs
@@ -120,11 +120,12 @@ namespace WalletWasabi.Tests.UnitTests
};
using var process = new ProcessAsync(startInfo);
+
process.Start();
- await process.WaitForExitAsync(CancellationToken.None).ConfigureAwait(false);
+ string output = process.StandardOutput.ReadToEnd(); // Gives back "login item Wasabi Wallet" or "login item"
- string output = process.StandardOutput.ReadToEnd(); // Gives back "login items Wasabi Wallet" or "login items"
+ await process.WaitForExitAsync(CancellationToken.None).ConfigureAwait(false);
return output;
}

Avoid deadlock