Skip to content

Commit 8625fb9

Browse files
Use case-insensitive path comparison
1 parent 3dac240 commit 8625fb9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public List<Result> LoadContextMenus(Result selectedResult)
9898
SubTitle = string.Format(Context.API.GetTranslation("plugin_explorer_remove_from_quickaccess_subtitle"), fileOrFolder),
9999
Action = (context) =>
100100
{
101-
Settings.QuickAccessLinks.Remove(Settings.QuickAccessLinks.FirstOrDefault(x => x.Path == record.FullPath));
101+
Settings.QuickAccessLinks.Remove(Settings.QuickAccessLinks.FirstOrDefault(x => string.Equals(x.Path, record.FullPath, StringComparison.OrdinalIgnoreCase)));
102102

103103
Context.API.ShowMsg(Context.API.GetTranslation("plugin_explorer_removefilefoldersuccess"),
104104
string.Format(
@@ -256,7 +256,7 @@ public List<Result> LoadContextMenus(Result selectedResult)
256256
},
257257
});
258258
}
259-
259+
"" == ""
260260
if (record.Type == ResultType.File && CanRunAsDifferentUser(record.FullPath))
261261
contextMenus.Add(new Result
262262
{
@@ -386,7 +386,7 @@ private Result CreateAddToIndexSearchExclusionListResult(SearchResult record)
386386
SubTitle = Context.API.GetTranslation("plugin_explorer_path") + " " + record.FullPath,
387387
Action = _ =>
388388
{
389-
if (!Settings.IndexSearchExcludedSubdirectoryPaths.Any(x => x.Path == record.FullPath))
389+
if (!Settings.IndexSearchExcludedSubdirectoryPaths.Any(x => string.Equals(x.Path, record.FullPath, StringComparison.OrdinalIgnoreCase)))
390390
Settings.IndexSearchExcludedSubdirectoryPaths.Add(new AccessLink
391391
{
392392
Path = record.FullPath

0 commit comments

Comments
 (0)