diff --git a/src/BD.WTTS.Client.Plugins.ArchiSteamFarmPlus/UI/ViewModels/ArchiSteamFarmExePathSettingsPageViewModel.cs b/src/BD.WTTS.Client.Plugins.ArchiSteamFarmPlus/UI/ViewModels/ArchiSteamFarmExePathSettingsPageViewModel.cs index 85c6094c652..24c833a2773 100644 --- a/src/BD.WTTS.Client.Plugins.ArchiSteamFarmPlus/UI/ViewModels/ArchiSteamFarmExePathSettingsPageViewModel.cs +++ b/src/BD.WTTS.Client.Plugins.ArchiSteamFarmPlus/UI/ViewModels/ArchiSteamFarmExePathSettingsPageViewModel.cs @@ -11,9 +11,16 @@ public ArchiSteamFarmExePathSettingsPageViewModel() SelectProgramPath = ReactiveCommand.Create(ASFService.Current.SelectASFProgramLocationAsync); DownloadASF = ReactiveCommand.Create(() => { - var progress = INotificationService.Instance.NotifyDownload(() => "开始下载 ASF ", NotificationType.NewVersion); - ASFService.Current.DownloadASFAsync(progress: progress); - Toast.Show(ToastIcon.Info, "等待后台下载文件", ToastLength.Short); + if (INotificationService.Instance.IsSupportNotifyDownload) + { + var progress = INotificationService.Instance.NotifyDownload(() => "开始下载 ASF ", NotificationType.NewVersion); + ASFService.Current.DownloadASFAsync(progress: progress); + Toast.Show(ToastIcon.Info, "等待后台下载文件", ToastLength.Short); + } + else + { + Toast.Show(ToastIcon.Error, "当前平台无法调用下载通知,请自行下载", ToastLength.Short); + } }); } }