新增 汉化缓存清理

This commit is contained in:
2023-12-06 20:49:14 +08:00
parent 9c049e7ae5
commit 3d7454613f
5 changed files with 47 additions and 13 deletions

View File

@ -51,6 +51,9 @@ class IndexUIModel extends BaseUIModel {
case 1:
getCreatedChildUIModel("tools")?.reloadData();
break;
case 2:
getCreatedChildUIModel("settings")?.reloadData();
break;
}
notifyListeners();
}
@ -65,7 +68,8 @@ class IndexUIModel extends BaseUIModel {
}
try {
var result = await Process.run(SystemHelper.powershellPath, ["echo", "ping"]);
var result =
await Process.run(SystemHelper.powershellPath, ["echo", "ping"]);
if (result.stdout.toString().startsWith("ping")) {
dPrint("powershell check pass");
} else {