mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 04:37:30 +02:00
fix #587
This commit is contained in:
@@ -113,6 +113,8 @@ namespace Wox
|
|||||||
var maxResults = _settings.MaxResultsToShow;
|
var maxResults = _settings.MaxResultsToShow;
|
||||||
comboMaxResultsToShow.SelectedItem = maxResults == 0 ? 6 : maxResults;
|
comboMaxResultsToShow.SelectedItem = maxResults == 0 ? 6 : maxResults;
|
||||||
|
|
||||||
|
PythonDirectory.Text = _settings.PluginSettings.PythonDirectory;
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Proxy
|
#region Proxy
|
||||||
@@ -248,7 +250,10 @@ namespace Wox
|
|||||||
|
|
||||||
private void SelectPythonDirectoryOnClick(object sender, RoutedEventArgs e)
|
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();
|
var result = dlg.ShowDialog();
|
||||||
if (result == System.Windows.Forms.DialogResult.OK)
|
if (result == System.Windows.Forms.DialogResult.OK)
|
||||||
|
|||||||
Reference in New Issue
Block a user