fix: 无法检测公告更新

This commit is contained in:
uye
2023-12-22 18:35:52 +08:00
parent 7c264fa1e4
commit 1fb4eb0355

View File

@@ -198,12 +198,12 @@ namespace MaaWpfGui.Main
{
Task.Run(async () =>
{
await Instances.AnnouncementViewModel.CheckAndDownloadAnnouncement();
if (Instances.AnnouncementViewModel.DoNotRemindThisAnnouncementAgain)
{
return;
}
await Instances.AnnouncementViewModel.CheckAndDownloadAnnouncement();
_ = Execute.OnUIThreadAsync(() => Instances.WindowManager.ShowWindow(Instances.AnnouncementViewModel));
});
Instances.VersionUpdateViewModel.ShowUpdateOrDownload();