Skip to content
This repository was archived by the owner on Jul 28, 2024. It is now read-only.

Commit 5a9480d

Browse files
committed
Update MainContent.xaml.cs
1 parent ef77552 commit 5a9480d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/LXLDevHelper/Views/MainContent.xaml.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,13 @@ private void LoadButton_Click(object sender, RoutedEventArgs e)
304304
}
305305
private void OpenDirButton_Click(object sender, RoutedEventArgs e)
306306
{
307-
Process.Start("explorer.exe", Path.GetFullPath(RootDir));
307+
var dir = Path.GetFullPath(RootDir);
308+
if (!Directory.Exists(dir))
309+
{
310+
ShowWarn("未找到数据!");
311+
return;
312+
}
313+
Process.Start("explorer.exe", dir);
308314
}
309315
#endregion
310316

0 commit comments

Comments
 (0)