diff --git a/Netch/Forms/Mode/Process.cs b/Netch/Forms/Mode/Process.cs
index 662c7461..e946cfa9 100644
--- a/Netch/Forms/Mode/Process.cs
+++ b/Netch/Forms/Mode/Process.cs
@@ -5,6 +5,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
+using Microsoft.WindowsAPICodePack.Dialogs;
using Netch.Utils;
namespace Netch.Forms.Mode
@@ -171,10 +172,18 @@ namespace Netch.Forms.Mode
private void ScanButton_Click(object sender, EventArgs e)
{
- var dialog = new FolderBrowserDialog();
- if (dialog.ShowDialog(this) == DialogResult.OK)
+ var dialog = new CommonOpenFileDialog
{
- ScanDirectory(dialog.SelectedPath);
+ IsFolderPicker = true,
+ Multiselect = false,
+ Title = i18N.Translate("Select a folder"),
+ AddToMostRecentlyUsedList = false,
+ EnsurePathExists = true,
+ NavigateToShortcut = true
+ };
+ if (dialog.ShowDialog(Win32Native.GetForegroundWindow()) == CommonFileDialogResult.Ok)
+ {
+ ScanDirectory(dialog.FileName);
MessageBoxX.Show(i18N.Translate("Scan completed"));
}
}
diff --git a/Netch/Netch.csproj b/Netch/Netch.csproj
index 7cb386e7..6acda02c 100644
--- a/Netch/Netch.csproj
+++ b/Netch/Netch.csproj
@@ -64,6 +64,7 @@
+
diff --git a/Netch/PostBuild.bat b/Netch/PostBuild.bat
index 0b4554b0..d97aaa87 100644
--- a/Netch/PostBuild.bat
+++ b/Netch/PostBuild.bat
@@ -9,10 +9,17 @@ if %Configuration%==Release (
%TargetDir%MaxMind.GeoIP2.dll ^
%TargetDir%Microsoft.Diagnostics.FastSerialization.dll ^
%TargetDir%Microsoft.Diagnostics.Tracing.TraceEvent.dll ^
+%TargetDir%Microsoft.WindowsAPICodePack.dll ^
+%TargetDir%Microsoft.WindowsAPICodePack.Shell.dll ^
%TargetDir%NetchLib.dll ^
%TargetDir%Newtonsoft.Json.dll ^
%TargetDir%OSExtensions.dll ^
+%TargetDir%System.Buffers.dll ^
+%TargetDir%System.Collections.Immutable.dll ^
+%TargetDir%System.Memory.dll ^
%TargetDir%System.Net.IPNetwork.dll ^
+%TargetDir%System.Numerics.Vectors.dll ^
+%TargetDir%System.Reflection.Metadata.dll ^
%TargetDir%System.Runtime.CompilerServices.Unsafe.dll ^
%TargetDir%TraceReloggerLib.dll