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