From b20750b936f7194d6444eaf02dcc882168b856ba Mon Sep 17 00:00:00 2001 From: bao-qian Date: Fri, 6 May 2016 21:25:53 +0100 Subject: [PATCH] fix #587 --- Wox/SettingWindow.xaml.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Wox/SettingWindow.xaml.cs b/Wox/SettingWindow.xaml.cs index b5ad5f87ac..413b24ea78 100644 --- a/Wox/SettingWindow.xaml.cs +++ b/Wox/SettingWindow.xaml.cs @@ -113,6 +113,8 @@ namespace Wox var maxResults = _settings.MaxResultsToShow; comboMaxResultsToShow.SelectedItem = maxResults == 0 ? 6 : maxResults; + PythonDirectory.Text = _settings.PluginSettings.PythonDirectory; + #endregion #region Proxy @@ -248,7 +250,10 @@ namespace Wox private void SelectPythonDirectoryOnClick(object sender, RoutedEventArgs e) { - var dlg = new FolderBrowserDialog {RootFolder = Environment.SpecialFolder.ProgramFiles}; + var dlg = new FolderBrowserDialog + { + SelectedPath = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles) + }; var result = dlg.ShowDialog(); if (result == System.Windows.Forms.DialogResult.OK)