解决点击手动更新直接闪退的问题

This commit is contained in:
cglcv
2022-06-18 13:05:22 +08:00
parent f6023600d5
commit 02c2e26972

View File

@@ -1092,10 +1092,13 @@ namespace MeoAsstGui
{
if (!updateModle.CheckAndDownloadUpdate(true))
{
using (var toast = new ToastNotification("已是最新版本~"))
Execute.OnUIThread(() =>
{
toast.Show();
}
using (var toast = new ToastNotification("已是最新版本~"))
{
toast.Show();
}
});
}
});
await task;