Browse Source

fix warning.

pull/6560/head
Dan Walmsley 5 years ago
parent
commit
f97252caa6
  1. 4
      src/Avalonia.Controls/TrayIcon.cs

4
src/Avalonia.Controls/TrayIcon.cs

@ -38,7 +38,7 @@ namespace Avalonia.Controls
{ {
IconsProperty.Changed.Subscribe(args => IconsProperty.Changed.Subscribe(args =>
{ {
if (args.Sender is Application application) if (args.Sender is Application)
{ {
if(args.OldValue.Value != null) if(args.OldValue.Value != null)
{ {
@ -135,7 +135,7 @@ namespace Avalonia.Controls
set => SetValue(IsVisibleProperty, value); set => SetValue(IsVisibleProperty, value);
} }
public INativeMenuExporter? NativeMenuExporter => _impl.MenuExporter; public INativeMenuExporter? NativeMenuExporter => _impl?.MenuExporter;
private static void Lifetime_Exit(object sender, ControlledApplicationLifetimeExitEventArgs e) private static void Lifetime_Exit(object sender, ControlledApplicationLifetimeExitEventArgs e)
{ {

Loading…
Cancel
Save