Browse Source

Merge pull request #10218 from AArnott/patch-1

Add nullable ref annotation to Windows.Close
pull/10224/head
Max Katz 3 years ago
committed by GitHub
parent
commit
64155069c5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Avalonia.Controls/Window.cs

2
src/Avalonia.Controls/Window.cs

@ -450,7 +450,7 @@ namespace Avalonia.Controls
/// resulting task will produce the <see cref="_dialogResult"/> value when the window
/// is closed.
/// </remarks>
public void Close(object dialogResult)
public void Close(object? dialogResult)
{
_dialogResult = dialogResult;
CloseCore(WindowCloseReason.WindowClosing, true);

Loading…
Cancel
Save