mirror of
https://ghfast.top/https://github.com/StarCitizenToolBox/app.git
synced 2025-06-28 06:44:45 +08:00
fix:SystemHelper.openDir
This commit is contained in:
@ -265,8 +265,7 @@ class LocalizationUIModel extends _$LocalizationUIModel {
|
||||
|
||||
openDir(BuildContext context) async {
|
||||
showToast(context, S.current.localization_info_custom_file_instructions);
|
||||
await Process.run(SystemHelper.powershellPath,
|
||||
["explorer.exe", "/select,\"${_customizeDir.absolute.path}\"\\"]);
|
||||
SystemHelper.openDir("\"${_customizeDir.absolute.path}\"\\");
|
||||
}
|
||||
|
||||
VoidCallback? doRemoteInstall(
|
||||
|
@ -259,8 +259,7 @@ class UpgradeDialogUI extends HookConsumerWidget {
|
||||
progress.value = 0;
|
||||
if (!context.mounted) return;
|
||||
showToast(context, S.current.app_upgrade_info_run_failed);
|
||||
Process.run(SystemHelper.powershellPath,
|
||||
["explorer.exe", "/select,\"$fileName\""]);
|
||||
SystemHelper.openDir("\"$fileName\"");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -361,8 +361,7 @@ class ToolsUIModel extends _$ToolsUIModel {
|
||||
}
|
||||
|
||||
openDir(path) async {
|
||||
await Process.run(
|
||||
SystemHelper.powershellPath, ["explorer.exe", "/select,\"$path\""]);
|
||||
SystemHelper.openDir("\"$path\"");
|
||||
}
|
||||
|
||||
Future _showSystemInfo(BuildContext context) async {
|
||||
|
Reference in New Issue
Block a user