diff --git a/src/ST.Client.Desktop.Avalonia/Application/Services/Implementation/PlatformNotificationServiceImpl.cs b/src/ST.Client.Desktop.Avalonia/Application/Services/Implementation/PlatformNotificationServiceImpl.cs index 7bb5fbcb7..b0e845aef 100644 --- a/src/ST.Client.Desktop.Avalonia/Application/Services/Implementation/PlatformNotificationServiceImpl.cs +++ b/src/ST.Client.Desktop.Avalonia/Application/Services/Implementation/PlatformNotificationServiceImpl.cs @@ -6,26 +6,26 @@ namespace System.Application.Services.Implementation /// internal sealed class PlatformNotificationServiceImpl : INotificationService { - bool INotificationService.AreNotificationsEnabled() => true; + bool INotificationService.AreNotificationsEnabled() => true; - void INotificationService.Cancel(NotificationType notificationType) + void INotificationService.Cancel(NotificationType notificationType) { INotifyIcon.Instance.HideBalloonTip(); } - void INotificationService.CancelAll() + void INotificationService.CancelAll() { INotifyIcon.Instance.HideBalloonTip(); } - void INotificationService.Notify(string text, NotificationType notificationType, bool autoCancel, string? title, Entrance entrance) + void INotificationService.Notify(string text, NotificationType notificationType, bool autoCancel, string? title, Entrance entrance) { title ??= ThisAssembly.AssemblyTrademark; // 调用托盘显示通知 INotifyIcon.Instance.ShowBalloonTip(title, text); } - Progress INotificationService.NotifyDownload(Func text, NotificationType notificationType, string? title) + Progress INotificationService.NotifyDownload(Func text, NotificationType notificationType, string? title) { // 桌面端不支持带进度的通知,下载新版本改用桌面端的窗口进度条控件,由更新服务桌面端版实现 throw new PlatformNotSupportedException();