mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-05-25 05:40:21 -04:00
[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:
parent
0d4e7ba4ae
commit
59db27de3a
@ -933,6 +933,11 @@ namespace AssetStudioGUI
|
|||||||
|
|
||||||
public static void OpenFolderInExplorer(string path)
|
public static void OpenFolderInExplorer(string path)
|
||||||
{
|
{
|
||||||
|
if (!path.EndsWith($"{Path.DirectorySeparatorChar}"))
|
||||||
|
path += Path.DirectorySeparatorChar;
|
||||||
|
if (!Directory.Exists(path))
|
||||||
|
return;
|
||||||
|
|
||||||
var info = new ProcessStartInfo(path);
|
var info = new ProcessStartInfo(path);
|
||||||
info.UseShellExecute = true;
|
info.UseShellExecute = true;
|
||||||
Process.Start(info);
|
Process.Start(info);
|
||||||
|
Loading…
Reference in New Issue
Block a user