mirror of
https://mirror.ghproxy.com/https://github.com/StarCitizenToolBox/app.git
synced 2024-12-23 10:03:43 +08:00
18 lines
593 B
Dart
18 lines
593 B
Dart
import 'package:starcitizen_doctor/base/ui_model.dart';
|
|
import 'package:starcitizen_doctor/common/conf/app_conf.dart';
|
|
import 'package:starcitizen_doctor/global_ui_model.dart';
|
|
import 'package:url_launcher/url_launcher_string.dart';
|
|
|
|
class AboutUIModel extends BaseUIModel {
|
|
Future<void> checkUpdate() async {
|
|
if (AppConf.isMSE) {
|
|
launchUrlString("ms-windows-store://pdp/?productid=9NF3SWFWNKL1");
|
|
return;
|
|
}
|
|
final hasUpdate = await globalUIModel.doCheckUpdate(context!);
|
|
if (!hasUpdate) {
|
|
if (mounted) showToast(context!, "已是最新版本");
|
|
}
|
|
}
|
|
}
|