Browse Source

Ensure render is started when a window opens.

pull/11978/head
Dan Walmsley 3 years ago
parent
commit
125cbc42bb
  1. 5
      src/Avalonia.Controls/Window.cs

5
src/Avalonia.Controls/Window.cs

@ -715,8 +715,8 @@ namespace Avalonia.Controls
SetWindowStartupLocation(owner);
PlatformImpl?.Show(ShowActivated, false);
StartRendering();
PlatformImpl?.Show(ShowActivated, false);
OnOpened(EventArgs.Empty);
}
}
@ -791,9 +791,8 @@ namespace Avalonia.Controls
SetWindowStartupLocation(owner);
PlatformImpl?.Show(ShowActivated, true);
StartRendering();
PlatformImpl?.Show(ShowActivated, true);
Observable.FromEventPattern(
x => Closed += x,

Loading…
Cancel
Save