From d5d263be6008c2c14b77ab86a6d3c773a727e44f Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Mon, 9 Nov 2020 08:25:59 +1100 Subject: [PATCH] update property name and use const --- Plugins/Flow.Launcher.Plugin.Program/Programs/UWP.cs | 2 +- Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs | 2 +- .../Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml.cs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.Program/Programs/UWP.cs b/Plugins/Flow.Launcher.Plugin.Program/Programs/UWP.cs index a0e496a0d..baeb651fa 100644 --- a/Plugins/Flow.Launcher.Plugin.Program/Programs/UWP.cs +++ b/Plugins/Flow.Launcher.Plugin.Program/Programs/UWP.cs @@ -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; diff --git a/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs b/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs index 7d3141c81..b77bc8513 100644 --- a/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs +++ b/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs @@ -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; }, diff --git a/Plugins/Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml.cs b/Plugins/Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml.cs index 881f35fe1..e4e92b9bc 100644 --- a/Plugins/Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml.cs +++ b/Plugins/Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml.cs @@ -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)