mirror of
https://mirror.ghproxy.com/https://github.com/StarCitizenToolBox/app.git
synced 2024-12-23 00:33:42 +08:00
fix:SystemHelper.openDir
This commit is contained in:
parent
8622a5068b
commit
6c0f30778f
@ -255,7 +255,7 @@ foreach ($adapter in $adapterMemory) {
|
|||||||
static Future openDir(path) async {
|
static Future openDir(path) async {
|
||||||
dPrint("SystemHelper.openDir path === $path");
|
dPrint("SystemHelper.openDir path === $path");
|
||||||
await Process.run(
|
await Process.run(
|
||||||
SystemHelper.powershellPath, ["explorer.exe", "/select,\"$path\""]);
|
SystemHelper.powershellPath, ["explorer.exe", "/select,\"\"$path\"\""]);
|
||||||
}
|
}
|
||||||
|
|
||||||
static String getHostsFilePath() {
|
static String getHostsFilePath() {
|
||||||
|
@ -265,8 +265,7 @@ class LocalizationUIModel extends _$LocalizationUIModel {
|
|||||||
|
|
||||||
openDir(BuildContext context) async {
|
openDir(BuildContext context) async {
|
||||||
showToast(context, S.current.localization_info_custom_file_instructions);
|
showToast(context, S.current.localization_info_custom_file_instructions);
|
||||||
await Process.run(SystemHelper.powershellPath,
|
SystemHelper.openDir("\"${_customizeDir.absolute.path}\"\\");
|
||||||
["explorer.exe", "/select,\"${_customizeDir.absolute.path}\"\\"]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
VoidCallback? doRemoteInstall(
|
VoidCallback? doRemoteInstall(
|
||||||
|
@ -259,8 +259,7 @@ class UpgradeDialogUI extends HookConsumerWidget {
|
|||||||
progress.value = 0;
|
progress.value = 0;
|
||||||
if (!context.mounted) return;
|
if (!context.mounted) return;
|
||||||
showToast(context, S.current.app_upgrade_info_run_failed);
|
showToast(context, S.current.app_upgrade_info_run_failed);
|
||||||
Process.run(SystemHelper.powershellPath,
|
SystemHelper.openDir("\"$fileName\"");
|
||||||
["explorer.exe", "/select,\"$fileName\""]);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -361,8 +361,7 @@ class ToolsUIModel extends _$ToolsUIModel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
openDir(path) async {
|
openDir(path) async {
|
||||||
await Process.run(
|
SystemHelper.openDir("\"$path\"");
|
||||||
SystemHelper.powershellPath, ["explorer.exe", "/select,\"$path\""]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Future _showSystemInfo(BuildContext context) async {
|
Future _showSystemInfo(BuildContext context) async {
|
||||||
|
Loading…
Reference in New Issue
Block a user