From 72bfb71f74d443961f431980cedbcc7cd1569f8b Mon Sep 17 00:00:00 2001 From: xkeyC <3334969096@qq.com> Date: Thu, 16 Nov 2023 20:53:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E9=94=AE=E5=90=AF=E5=8A=A8=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E6=90=AC=E5=AE=B6=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/ui/home/home_ui_model.dart | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/lib/ui/home/home_ui_model.dart b/lib/ui/home/home_ui_model.dart index 9d4be76..1f03506 100644 --- a/lib/ui/home/home_ui_model.dart +++ b/lib/ui/home/home_ui_model.dart @@ -507,19 +507,19 @@ class HomeUIModel extends BaseUIModel { modelCreate: () => LoginDialogModel(scInstalledPath, this)); }); } else { - isRsiLauncherStarting = true; - notifyListeners(); - final rsiLauncherInstalledPath = await SystemHelper.getRSILauncherPath(); - if (rsiLauncherInstalledPath.isEmpty) { - isRsiLauncherStarting = false; - notifyListeners(); - showToast(context!, "未找到 RSI 启动器目录"); - return; + final ok = await showConfirmDialogs( + context!, + "一键启动功能提示", + const Text("为确保账户安全,一键启动功能已在开发版中禁用,我们将在微软商店版本中提供此功能。" + "\n\n微软商店版由微软提供分发下载与数字签名,可有效防止软件数据被篡改。\n\n提示:您无需使用盒子启动游戏也可使用汉化。"), + confirm: "安装微软商店版本", + cancel: "取消"); + 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(); } }