fix more spelling

This commit is contained in:
Hongtao Zhang 2022-12-31 17:12:43 -05:00
parent 8cc6fcfef0
commit f7f82a746e
No known key found for this signature in database
GPG key ID: 75F655B91C7AC9BB
3 changed files with 10 additions and 8 deletions

View file

@ -55,3 +55,5 @@ appref
TSource TSource
runas runas
dpi dpi
popup
ptr

View file

@ -147,7 +147,7 @@ namespace Flow.Launcher.Plugin.Program.Programs
} }
ProgramLogger.LogException($"|UWP|GetPackageVersionFromManifest|{Location}" + ProgramLogger.LogException($"|UWP|GetPackageVersionFromManifest|{Location}" +
"|Trying to get the package version of the UWP program, but an unknown UWP appmanifest version in package " "|Trying to get the package version of the UWP program, but an unknown UWP app-manifest version in package "
+ $"{FullName} from location {Location}", new FormatException()); + $"{FullName} from location {Location}", new FormatException());
return PackageVersion.Unknown; return PackageVersion.Unknown;
} }
@ -633,7 +633,7 @@ namespace Flow.Launcher.Plugin.Program.Programs
// } // }
// else // else
// { // {
// ProgramLogger.LogException($"|UWP|ImageFromPath|{(string.IsNullOrEmpty(path) ? "Not Avaliable" : path)}" + // ProgramLogger.LogException($"|UWP|ImageFromPath|{(string.IsNullOrEmpty(path) ? "Not Available" : path)}" +
// $"|Unable to get logo for {UserModelId} from {path} and" + // $"|Unable to get logo for {UserModelId} from {path} and" +
// $" located in {Location}", new FileNotFoundException()); // $" located in {Location}", new FileNotFoundException());
// return new BitmapImage(new Uri(Constant.MissingImgIcon)); // return new BitmapImage(new Uri(Constant.MissingImgIcon));

View file

@ -84,14 +84,14 @@ namespace Flow.Launcher.Plugin.Program.Programs
{ {
title = $"{Name}: {Description}"; title = $"{Name}: {Description}";
var nameMatch = StringMatcher.FuzzySearch(query, Name); var nameMatch = StringMatcher.FuzzySearch(query, Name);
var desciptionMatch = StringMatcher.FuzzySearch(query, Description); var descriptionMatch = StringMatcher.FuzzySearch(query, Description);
if (desciptionMatch.Score > nameMatch.Score) if (descriptionMatch.Score > nameMatch.Score)
{ {
for (int i = 0; i < desciptionMatch.MatchData.Count; i++) for (int i = 0; i < descriptionMatch.MatchData.Count; i++)
{ {
desciptionMatch.MatchData[i] += Name.Length + 2; // 2 is ": " descriptionMatch.MatchData[i] += Name.Length + 2; // 2 is ": "
} }
matchResult = desciptionMatch; matchResult = descriptionMatch;
} }
else matchResult = nameMatch; else matchResult = nameMatch;
} }