update property name and use const

This commit is contained in:
Jeremy Wu 2020-11-09 08:25:59 +11:00
parent 51ea7abd6b
commit d5d263be60
3 changed files with 4 additions and 4 deletions

View file

@ -325,7 +325,7 @@ namespace Flow.Launcher.Plugin.Program.Programs
Action = _ =>
{
Main.StartProcess(Process.Start, new ProcessStartInfo(
!string.IsNullOrEmpty(Main._settings.CustomizedExploere) ? Main._settings.CustomizedExploere:"exploere",
!string.IsNullOrEmpty(Main._settings.CustomizedExplorer) ? Main._settings.CustomizedExplorer:Settings.Explorer,
$"{Main._settings.CustomizedArgs} \"{Package.Location}\"".Trim()));
return true;

View file

@ -141,7 +141,7 @@ namespace Flow.Launcher.Plugin.Program.Programs
Action = _ =>
{
Main.StartProcess(Process.Start, new ProcessStartInfo(
!string.IsNullOrEmpty(Main._settings.CustomizedExploere) ? Main._settings.CustomizedExploere:"exploere",
!string.IsNullOrEmpty(Main._settings.CustomizedExplorer) ? Main._settings.CustomizedExplorer:Settings.Explorer,
$"{Main._settings.CustomizedArgs} \"{ParentDirectory}\"".Trim()));
return true;
},

View file

@ -43,7 +43,7 @@ namespace Flow.Launcher.Plugin.Program.Views
StartMenuEnabled.IsChecked = _settings.EnableStartMenuSource;
RegistryEnabled.IsChecked = _settings.EnableRegistrySource;
CustomizeExplorerBox.Text = _settings.CustomizedExploere;
CustomizeExplorerBox.Text = _settings.CustomizedExplorer;
CustomizeArgsBox.Text = _settings.CustomizedArgs;
ViewRefresh();
@ -332,7 +332,7 @@ namespace Flow.Launcher.Plugin.Program.Views
private void CustomizeExplorer(object sender, TextChangedEventArgs e)
{
_settings.CustomizedExploere = CustomizeExplorerBox.Text;
_settings.CustomizedExplorer = CustomizeExplorerBox.Text;
}
private void CustomizeExplorerArgs(object sender, TextChangedEventArgs e)