Skip to content

Commit

Permalink
Merge pull request WalletWasabi#12819 from wieslawsoltes/vdg/12815-fi…
Browse files Browse the repository at this point in the history
…x-closing-windows-after-hide

[UI] [macOS] Do not call Hide when the MainWindow from lifetime is not present
  • Loading branch information
RolandUI authored Apr 11, 2024
2 parents d4e3460 + c9ce9ce commit 3e01f3b
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 3e01f3b

Please sign in to comment.