From 7c8e509c95c2af0c0d076b13fbbc5aa63a06cb69 Mon Sep 17 00:00:00 2001
From: 905086 <k2049@qq.com>
Date: Sat, 07 Nov 2026 19:35:38 +0800
Subject: [PATCH] chore: 删除无用的测试工具及相关文件
---
fluttergamebox/lib/store/app_state.dart | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/fluttergamebox/lib/store/app_state.dart b/fluttergamebox/lib/store/app_state.dart
index bdcfcd9..345dd96 100644
--- a/fluttergamebox/lib/store/app_state.dart
+++ b/fluttergamebox/lib/store/app_state.dart
@@ -157,6 +157,15 @@
}
}
+ /// 清除指定工具已完成的任务记录(工具卸载后不再视为已安装)
+ void clearFinishedToolTask(int toolId) {
+ final t = activeTask;
+ if (t != null && t.isTool && t.gameId == toolId && t.finished) {
+ activeTask = null;
+ notifyListeners();
+ }
+ }
+
Future<void> startDownload(Game game) async {
// 获取下载文件列表(服务端校验会员)
final res = await ApiService.downloadInfo(game.id);
--
Gitblit v1.10.0