Browse Source

More one liners for the god of one liners

pull/8604/head
Nikita Tsukanov 4 years ago
parent
commit
1aff496738
  1. 11
      src/Avalonia.Controls/Platform/PlatformManager.cs

11
src/Avalonia.Controls/Platform/PlatformManager.cs

@ -20,15 +20,8 @@ namespace Avalonia.Controls.Platform
{
}
public static ITrayIconImpl? CreateTrayIcon()
{
var platform = AvaloniaLocator.Current.GetService<IWindowingPlatform>();
if (platform == null)
return null;
return s_designerMode ? null : platform.CreateTrayIcon();
}
public static ITrayIconImpl? CreateTrayIcon() =>
s_designerMode ? null : AvaloniaLocator.Current.GetService<IWindowingPlatform>()?.CreateTrayIcon();
public static IWindowImpl CreateWindow()

Loading…
Cancel
Save