chore: 启动弹出公告前检查内容是否为空

This commit is contained in:
uye
2025-02-08 15:33:09 +08:00
parent d9856d96ff
commit 504adf4fe5

View File

@@ -60,7 +60,10 @@ namespace MaaWpfGui.ViewModels.UI
return;
}
_ = Execute.OnUIThreadAsync(() => Instances.WindowManager.ShowWindow(Instances.AnnouncementViewModel));
if (Instances.AnnouncementViewModel.AnnouncementInfo != string.Empty)
{
_ = Execute.OnUIThreadAsync(() => Instances.WindowManager.ShowWindow(Instances.AnnouncementViewModel));
}
});
Instances.VersionUpdateViewModel.ShowUpdateOrDownload();