mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 18:47:55 +08:00
perf: wpf Win10+Toast通知使用系统内置通知声而不是独立播放
This commit is contained in:
@@ -267,7 +267,7 @@ namespace MaaWpfGui.Helper
|
||||
|
||||
#region 通知按钮变量
|
||||
|
||||
private List<NotificationAction> _actions = new List<NotificationAction>();
|
||||
private List<NotificationAction> _actions = [];
|
||||
|
||||
#endregion 通知按钮变量
|
||||
|
||||
@@ -345,8 +345,10 @@ namespace MaaWpfGui.Helper
|
||||
// 显示通知
|
||||
_notificationPoster.ShowNotification(content);
|
||||
|
||||
// 播放通知提示音
|
||||
PlayNotificationSound(sound);
|
||||
if (_notificationPoster is not NotificationImplWinRT)
|
||||
{
|
||||
PlayNotificationSound(sound); // 播放通知提示音
|
||||
}
|
||||
|
||||
// 任务栏闪烁
|
||||
FlashWindowEx();
|
||||
|
||||
Reference in New Issue
Block a user