mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
fix edit & remove for IndexExcludedPath
This commit is contained in:
parent
cc79079045
commit
8b856c223e
1 changed files with 3 additions and 3 deletions
|
|
@ -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<AccessLink> 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
|
|||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue