mirror of
https://mirror.ghproxy.com/https://github.com/StarCitizenToolBox/app.git
synced 2024-12-23 00:33:42 +08:00
fix: open logs
This commit is contained in:
parent
39a2a28dd1
commit
e5e16838eb
@ -255,10 +255,10 @@ foreach ($adapter in $adapterMemory) {
|
||||
.toUpperCase();
|
||||
}
|
||||
|
||||
static Future openDir(path) async {
|
||||
static Future openDir(path, {bool isFile = false}) async {
|
||||
dPrint("SystemHelper.openDir path === $path");
|
||||
await Process.run(
|
||||
SystemHelper.powershellPath, ["explorer.exe", "/select,\"\"$path\"\""]);
|
||||
SystemHelper.powershellPath, ["explorer.exe", isFile ? "/select,${path}" : "/select,\"\"$path\"\""]);
|
||||
}
|
||||
|
||||
static String getHostsFilePath() {
|
||||
|
@ -231,6 +231,7 @@ class SettingsUIModel extends _$SettingsUIModel {
|
||||
}
|
||||
|
||||
showLogs() async {
|
||||
SystemHelper.openDir(getDPrintFile()?.absolute.path.replaceAll("/", "\\"));
|
||||
SystemHelper.openDir(getDPrintFile()?.absolute.path.replaceAll("/", "\\"),
|
||||
isFile: true);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user