[GUI] Fix a bug with OpenFolderAfterExport option

- Fixed a bug with the OpenFolderAfterExport option when it launched a file instead of opening a folder in some cases
This commit is contained in:
VaDiM 2024-12-07 15:34:09 +03:00
parent 0d4e7ba4ae
commit 59db27de3a

View File

@ -933,6 +933,11 @@ namespace AssetStudioGUI
public static void OpenFolderInExplorer(string path)
{
if (!path.EndsWith($"{Path.DirectorySeparatorChar}"))
path += Path.DirectorySeparatorChar;
if (!Directory.Exists(path))
return;
var info = new ProcessStartInfo(path);
info.UseShellExecute = true;
Process.Start(info);