dont prevent window close if we are in BackgroundMode.
MODIFY
WalletWasabi.Fluent/ApplicationStateManager.cs
WalletWasabi.Fluent/ApplicationStateManager.cs
@@ -173,6 +173,8 @@ public class ApplicationStateManager : IMainWindowService
}
private void MainWindowOnClosing(object? sender, CancelEventArgs e)
+ {
+ if (_stateMachine.IsInState(State.StandardMode))
{
if (ApplicationViewModel is { })
{
@@ -188,6 +190,7 @@ public class ApplicationStateManager : IMainWindowService
_stateMachine.Fire(Trigger.ShutdownRequested);
}
}
+ }
private void LifetimeOnShutdownRequested(object? sender, ShutdownRequestedEventArgs e)
{

dont prevent window close if we are in BackgroundMode.