Fix Open Mod Folder and Edit Json.

This commit is contained in:
Ottermandias 2021-09-05 11:38:58 +02:00
parent 3cd9655263
commit 69cb329b8f

View file

@ -250,7 +250,7 @@ namespace Penumbra.UI
Mod!.Data.BasePath.Refresh(); Mod!.Data.BasePath.Refresh();
if( ImGui.Button( ButtonOpenModFolder ) && Mod.Data.BasePath.Exists ) if( ImGui.Button( ButtonOpenModFolder ) && Mod.Data.BasePath.Exists )
{ {
Process.Start( Mod!.Data.BasePath.FullName ); Process.Start( new ProcessStartInfo( Mod!.Data.BasePath.FullName ) { UseShellExecute = true } );
} }
if( ImGui.IsItemHovered() ) if( ImGui.IsItemHovered() )
@ -412,7 +412,7 @@ namespace Penumbra.UI
if( ImGui.Button( ButtonEditJson ) ) if( ImGui.Button( ButtonEditJson ) )
{ {
_selector.SaveCurrentMod(); _selector.SaveCurrentMod();
Process.Start( Mod!.Data.MetaFile.FullName ); Process.Start( new ProcessStartInfo( Mod!.Data.MetaFile.FullName ) { UseShellExecute = true } );
} }
if( ImGui.IsItemHovered() ) if( ImGui.IsItemHovered() )