Browse Source

Revert original check to the Owner property

pull/8995/head
Tiago Conceição 4 years ago
parent
commit
fa78c1c886
  1. 2
      src/Avalonia.Controls/Window.cs

2
src/Avalonia.Controls/Window.cs

@ -831,7 +831,7 @@ namespace Avalonia.Controls
if (startupLocation == WindowStartupLocation.CenterOwner &&
(owner is null ||
(owner is Window ownerWindow && ownerWindow.WindowState == WindowState.Minimized))
(Owner is Window ownerWindow && ownerWindow.WindowState == WindowState.Minimized))
)
{
// If startup location is CenterOwner, but owner is null or minimized then fall back

Loading…
Cancel
Save