Browse Source

fix(HotKeyManager): null annotation after rebase

pull/7500/head
Giuseppe Lippolis 4 years ago
parent
commit
6a54fc7e1b
  1. 6
      src/Avalonia.Controls/HotkeyManager.cs

6
src/Avalonia.Controls/HotkeyManager.cs

@ -19,7 +19,7 @@ namespace Avalonia.Controls
reference = new WeakReference(control);
}
public ICommand GetCommand()
public ICommand? GetCommand()
{
if (reference.Target is { } target)
{
@ -35,7 +35,7 @@ namespace Avalonia.Controls
return null;
}
public bool CanExecute(object parameter)
public bool CanExecute(object? parameter)
{
if (reference.Target is { } target)
{
@ -52,7 +52,7 @@ namespace Avalonia.Controls
return false;
}
public void Execute(object parameter)
public void Execute(object? parameter)
{
if (reference.Target is { } target)
{

Loading…
Cancel
Save