mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-25 03:09:54 +08:00
fix
This commit is contained in:
+5
-5
@@ -6,26 +6,26 @@ namespace System.Application.Services.Implementation
|
||||
/// <inheritdoc cref="INotificationService{TNotificationType, TEntrance}"/>
|
||||
internal sealed class PlatformNotificationServiceImpl : INotificationService
|
||||
{
|
||||
bool INotificationService<NotificationType, Entrance>.AreNotificationsEnabled() => true;
|
||||
bool INotificationService<NotificationType, Entrance, INotificationService>.AreNotificationsEnabled() => true;
|
||||
|
||||
void INotificationService<NotificationType, Entrance>.Cancel(NotificationType notificationType)
|
||||
void INotificationService<NotificationType, Entrance, INotificationService>.Cancel(NotificationType notificationType)
|
||||
{
|
||||
INotifyIcon.Instance.HideBalloonTip();
|
||||
}
|
||||
|
||||
void INotificationService<NotificationType, Entrance>.CancelAll()
|
||||
void INotificationService<NotificationType, Entrance, INotificationService>.CancelAll()
|
||||
{
|
||||
INotifyIcon.Instance.HideBalloonTip();
|
||||
}
|
||||
|
||||
void INotificationService<NotificationType, Entrance>.Notify(string text, NotificationType notificationType, bool autoCancel, string? title, Entrance entrance)
|
||||
void INotificationService<NotificationType, Entrance, INotificationService>.Notify(string text, NotificationType notificationType, bool autoCancel, string? title, Entrance entrance)
|
||||
{
|
||||
title ??= ThisAssembly.AssemblyTrademark;
|
||||
// 调用托盘显示通知
|
||||
INotifyIcon.Instance.ShowBalloonTip(title, text);
|
||||
}
|
||||
|
||||
Progress<float> INotificationService<NotificationType, Entrance>.NotifyDownload(Func<string> text, NotificationType notificationType, string? title)
|
||||
Progress<float> INotificationService<NotificationType, Entrance, INotificationService>.NotifyDownload(Func<string> text, NotificationType notificationType, string? title)
|
||||
{
|
||||
// 桌面端不支持带进度的通知,下载新版本改用桌面端的窗口进度条控件,由更新服务桌面端版实现
|
||||
throw new PlatformNotSupportedException();
|
||||
|
||||
Reference in New Issue
Block a user