From 8b856c223e8bb5eb04f1335370ea3f1cea122599 Mon Sep 17 00:00:00 2001 From: Hongtao Zhang Date: Fri, 4 Nov 2022 01:29:18 -0500 Subject: [PATCH] fix edit & remove for IndexExcludedPath --- .../ViewModels/SettingsViewModel.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/ViewModels/SettingsViewModel.cs b/Plugins/Flow.Launcher.Plugin.Explorer/ViewModels/SettingsViewModel.cs index 5d6eca0ad..4598d36d0 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/ViewModels/SettingsViewModel.cs +++ b/Plugins/Flow.Launcher.Plugin.Explorer/ViewModels/SettingsViewModel.cs @@ -179,7 +179,7 @@ namespace Flow.Launcher.Plugin.Explorer.ViewModels var container = containerName switch { "QuickAccessLink" => Settings.QuickAccessLinks, - "IndexSearchExcludedPath" => Settings.IndexSearchExcludedSubdirectoryPaths, + "IndexSearchExcludedPaths" => Settings.IndexSearchExcludedSubdirectoryPaths, _ => throw new ArgumentException($"Unknown container name: {containerName}") }; container.Add(link); @@ -190,7 +190,7 @@ namespace Flow.Launcher.Plugin.Explorer.ViewModels (AccessLink selectedLink, ObservableCollection collection) = commandParameter switch { "QuickAccessLink" => (SelectedQuickAccessLink, Settings.QuickAccessLinks), - "IndexSearchExcludedPath" => (SelectedIndexSearchExcludedPath, Settings.IndexSearchExcludedSubdirectoryPaths), + "IndexSearchExcludedPaths" => (SelectedIndexSearchExcludedPath, Settings.IndexSearchExcludedSubdirectoryPaths), _ => throw new ArgumentOutOfRangeException(nameof(commandParameter)) }; @@ -409,4 +409,4 @@ namespace Flow.Launcher.Plugin.Explorer.ViewModels } -} \ No newline at end of file +}