mirror of
https://mirror.ghproxy.com/https://github.com/StarCitizenToolBox/app.git
synced 2024-12-23 11:13:46 +08:00
一键启动功能搬家提示
This commit is contained in:
parent
1d7d591a0d
commit
72bfb71f74
@ -507,19 +507,19 @@ class HomeUIModel extends BaseUIModel {
|
|||||||
modelCreate: () => LoginDialogModel(scInstalledPath, this));
|
modelCreate: () => LoginDialogModel(scInstalledPath, this));
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
isRsiLauncherStarting = true;
|
final ok = await showConfirmDialogs(
|
||||||
notifyListeners();
|
context!,
|
||||||
final rsiLauncherInstalledPath = await SystemHelper.getRSILauncherPath();
|
"一键启动功能提示",
|
||||||
if (rsiLauncherInstalledPath.isEmpty) {
|
const Text("为确保账户安全,一键启动功能已在开发版中禁用,我们将在微软商店版本中提供此功能。"
|
||||||
isRsiLauncherStarting = false;
|
"\n\n微软商店版由微软提供分发下载与数字签名,可有效防止软件数据被篡改。\n\n提示:您无需使用盒子启动游戏也可使用汉化。"),
|
||||||
notifyListeners();
|
confirm: "安装微软商店版本",
|
||||||
showToast(context!, "未找到 RSI 启动器目录");
|
cancel: "取消");
|
||||||
return;
|
if (ok == true) {
|
||||||
|
await launchUrlString(
|
||||||
|
"https://apps.microsoft.com/detail/9NF3SWFWNKL1?launch=true");
|
||||||
|
await Future.delayed(const Duration(seconds: 2));
|
||||||
|
exit(0);
|
||||||
}
|
}
|
||||||
SystemHelper.checkAndLaunchRSILauncher(rsiLauncherInstalledPath);
|
|
||||||
await Future.delayed(const Duration(seconds: 3));
|
|
||||||
isRsiLauncherStarting = false;
|
|
||||||
notifyListeners();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user