From 63ae983230ff2b065df1f8f56b78665313c1a468 Mon Sep 17 00:00:00 2001 From: Aigio Liu Date: Sun, 29 Aug 2021 19:05:04 +0800 Subject: [PATCH] remove AddNotifyIcon --- .../ServiceCollectionExtensions.cs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/ST.Client.Desktop.Avalonia/ServiceCollectionExtensions.cs b/src/ST.Client.Desktop.Avalonia/ServiceCollectionExtensions.cs index 6abedf337dc..d63f9a2119f 100644 --- a/src/ST.Client.Desktop.Avalonia/ServiceCollectionExtensions.cs +++ b/src/ST.Client.Desktop.Avalonia/ServiceCollectionExtensions.cs @@ -28,21 +28,6 @@ public static IServiceCollection TryAddFilePickerPlatformService(this IServiceCo return services; } - /// - /// 添加托盘图标 - /// - /// - /// - /// - public static IServiceCollection AddNotifyIcon(this IServiceCollection services) where TNotifyIcon : class, INotifyIcon - { - services.AddSingleton.IUIFrameworkHelper, INotifyIcon.UIFrameworkHelper>(); - services.AddSingleton(); - services.AddSingleton(s => s.GetRequiredService()); - services.AddSingleton>(s => s.GetRequiredService()); - return services; - } - /// /// 添加适用于桌面端的 ///