mirror of
https://ghfast.top/https://github.com/StarCitizenToolBox/app.git
synced 2025-07-12 08:47:47 +08:00
下载管理器
This commit is contained in:
@ -245,20 +245,15 @@ class GameDoctorUIModel extends BaseUIModel {
|
||||
case "rsi_log":
|
||||
final path = await SCLoggerHelper.getLogFilePath();
|
||||
if (path == null) return;
|
||||
openDir(path);
|
||||
SystemHelper.openDir(path);
|
||||
return;
|
||||
case "game_log":
|
||||
if (scInstalledPath == "not_install") {
|
||||
showToast(context!, "请在首页选择游戏安装目录。");
|
||||
return;
|
||||
}
|
||||
openDir("$scInstalledPath\\Game.log");
|
||||
SystemHelper.openDir("$scInstalledPath\\Game.log");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
openDir(path) async {
|
||||
await Process.run(
|
||||
SystemHelper.powershellPath, ["explorer.exe", "/select,\"$path\""]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user