mirror of
https://ghfast.top/https://github.com/StarCitizenToolBox/app.git
synced 2025-06-28 05:34:45 +08:00
ee
This commit is contained in:
@ -9,7 +9,7 @@ class AboutUIModel extends BaseUIModel {
|
||||
launchUrlString("ms-windows-store://pdp/?productid=9NF3SWFWNKL1");
|
||||
return;
|
||||
}
|
||||
final hasUpdate = await globalUIModel.checkUpdate(context!);
|
||||
final hasUpdate = await globalUIModel.doCheckUpdate(context!);
|
||||
if (!hasUpdate) {
|
||||
if (mounted) showToast(context!, "已是最新版本");
|
||||
}
|
||||
|
@ -17,7 +17,7 @@ class IndexUIModel extends BaseUIModel {
|
||||
void initModel() {
|
||||
_checkRunTime();
|
||||
Future.delayed(const Duration(milliseconds: 300))
|
||||
.then((value) => globalUIModel.checkUpdate(context!));
|
||||
.then((value) => globalUIModel.doCheckUpdate(context!));
|
||||
super.initModel();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user