Skip to content

Commit

Permalink
Do not call Hide when the MainWindow from lifetime is not present
Browse files Browse the repository at this point in the history
  • Loading branch information
wieslawsoltes committed Apr 11, 2024
1 parent e47ebae commit c9ce9ce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion WalletWasabi.Fluent/ApplicationStateManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,10 @@ private void ActivatableLifetimeOnDeactivated(object? sender, ActivatedEventArgs
case ActivationKind.Background:
if (this is IMainWindowService service)
{
service.Hide();
if (_lifetime.MainWindow is not null)
{
service.Hide();
}
}
break;
}
Expand Down

0 comments on commit c9ce9ce

Please sign in to comment.