From d76ded39ffcbf30dba94721f4095b3e67b835a11 Mon Sep 17 00:00:00 2001 From: Truong Giang Date: Sat, 14 Aug 2021 20:57:34 +0700 Subject: [PATCH] Use last folder path as initial folder in OpenFileDialog --- UnityLauncherPro/Tools.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UnityLauncherPro/Tools.cs b/UnityLauncherPro/Tools.cs index 540bf9c..757dc88 100644 --- a/UnityLauncherPro/Tools.cs +++ b/UnityLauncherPro/Tools.cs @@ -857,7 +857,7 @@ public static string BrowseForOutputFolder(string title) // https://stackoverflow.com/a/50261723/5452781 // Create a "Save As" dialog for selecting a directory (HACK) var dialog = new Microsoft.Win32.SaveFileDialog(); - dialog.InitialDirectory = "c:"; // Use current value for initial dir + //dialog.InitialDirectory = "c:"; // Use current value for initial dir dialog.Title = title; dialog.Filter = "Project Folder|*.Folder"; // Prevents displaying files dialog.FileName = "Project"; // Filename will then be "select.this.directory"