Use ExecutableName instead of getting it from path

This commit is contained in:
弘韬 张 2021-02-15 11:50:27 +08:00
parent 79d195f7e6
commit 208bde0f99

View file

@ -45,7 +45,7 @@ namespace Flow.Launcher.Plugin.Program.Programs
var pathMatchResult = new MatchResult(false, 0, new List<int>(), 0);
if (ExecutableName != null) // only lnk program will need this one
pathMatchResult = StringMatcher.FuzzySearch(query, Path.GetFileNameWithoutExtension(FullPath));
pathMatchResult = StringMatcher.FuzzySearch(query, ExecutableName);
MatchResult matchResult = nameMatchResult;