From 0b4478cf6c0eb509c95a9bec2cc7bda37b259e10 Mon Sep 17 00:00:00 2001
From: 905086 <k2049@qq.com>
Date: Sat, 07 Nov 2026 19:06:06 +0800
Subject: [PATCH] feat: 新增工具管理功能及工具下载安装流程

---
 fluttergamebox/lib/widgets/download_manager.dart |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/fluttergamebox/lib/widgets/download_manager.dart b/fluttergamebox/lib/widgets/download_manager.dart
index 38c9446..ec5f683 100644
--- a/fluttergamebox/lib/widgets/download_manager.dart
+++ b/fluttergamebox/lib/widgets/download_manager.dart
@@ -54,7 +54,7 @@
   Future<void> _launchGame(DownloadTask task) async {
     final ok = await launchInstalledGame(task.title, task.launchExe);
     if (!ok && mounted) {
-      _toast('未找到游戏文件,请重新下载安装');
+      _toast(task.isTool ? '未找到工具文件,请重新下载安装' : '未找到游戏文件,请重新下载安装');
     }
   }
 
@@ -475,13 +475,13 @@
                           padding: const EdgeInsets.symmetric(vertical: 12),
                         ),
                         child: (task.finished && !task.extractFailed)
-                            ? const Row(
+                            ? Row(
                                 mainAxisAlignment: MainAxisAlignment.center,
                                 children: [
-                                  Icon(Icons.play_arrow, size: 18),
-                                  SizedBox(width: 8),
-                                  Text('启动游戏',
-                                      style: TextStyle(fontSize: 14)),
+                                  const Icon(Icons.play_arrow, size: 18),
+                                  const SizedBox(width: 8),
+                                  Text(task.isTool ? '启动' : '启动游戏',
+                                      style: const TextStyle(fontSize: 14)),
                                 ],
                               )
                             : const Text('取消安装'),

--
Gitblit v1.10.0