Browse Source

Make WindowNotificationManager(TopLevel) ctor nullable as it was before

pull/12178/head
Max Katz 3 years ago
parent
commit
0f85a4603d
  1. 7
      src/Avalonia.Controls/Notifications/WindowNotificationManager.cs

7
src/Avalonia.Controls/Notifications/WindowNotificationManager.cs

@ -54,9 +54,12 @@ namespace Avalonia.Controls.Notifications
/// Initializes a new instance of the <see cref="WindowNotificationManager"/> class.
/// </summary>
/// <param name="host">The TopLevel that will host the control.</param>
public WindowNotificationManager(TopLevel host) : this()
public WindowNotificationManager(TopLevel? host) : this()
{
InstallFromTopLevel(host);
if (host is not null)
{
InstallFromTopLevel(host);
}
}
/// <summary>

Loading…
Cancel
Save