Browse Source

Input manager subscription may be null.

As we accept a null `InputManager` for unit testing.
pull/3745/head
Steven Kirk 6 years ago
parent
commit
b42458be76
  1. 2
      src/Avalonia.Controls/Platform/DefaultMenuInteractionHandler.cs

2
src/Avalonia.Controls/Platform/DefaultMenuInteractionHandler.cs

@ -96,7 +96,7 @@ namespace Avalonia.Controls.Platform
root.Deactivated -= WindowDeactivated;
}
_inputManagerSubscription!.Dispose();
_inputManagerSubscription?.Dispose();
Menu = null;
_root = null;

Loading…
Cancel
Save