mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 10:17:22 +01:00
fix #37 - check dir exists before trying to open it
This commit is contained in:
parent
25f901bb7c
commit
9decf26ab6
1 changed files with 6 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Text.RegularExpressions;
|
||||
using Dalamud.Plugin;
|
||||
using ImGuiNET;
|
||||
|
|
@ -58,6 +59,11 @@ namespace Penumbra.UI
|
|||
{
|
||||
if( ImGui.Button( LabelOpenFolder ) )
|
||||
{
|
||||
if( !Directory.Exists( _config.ModDirectory ) )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Process.Start( _config.ModDirectory );
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue