mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 18:47:55 +08:00
chore: 启动弹出公告前检查内容是否为空
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user