Skip to content

Commit

Permalink
fix #37 - check dir exists before trying to open it
Browse files Browse the repository at this point in the history
  • Loading branch information
NotAdam committed Jul 11, 2021
1 parent 25f901b commit 9decf26
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Penumbra/UI/MenuTabs/TabSettings.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Diagnostics;
using System.IO;
using System.Text.RegularExpressions;
using Dalamud.Plugin;
using ImGuiNET;
Expand Down Expand Up @@ -58,6 +59,11 @@ private void DrawOpenModsButton()
{
if( ImGui.Button( LabelOpenFolder ) )
{
if( !Directory.Exists( _config.ModDirectory ) )
{
return;
}

Process.Start( _config.ModDirectory );
}
}
Expand Down

0 comments on commit 9decf26

Please sign in to comment.