[PT Run][Registry] show no results on query fail (#13244)

This commit is contained in:
Jaime Bernardo 2021-09-17 15:49:40 +01:00 committed by GitHub
parent 323f41d14b
commit 6bd0840863
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,7 +104,8 @@ namespace Microsoft.PowerToys.Run.Plugin.Registry.Helper
if (result.Count == 0)
{
return FindSubKey(subKey, string.Empty);
// If a subKey can't be found, show no results.
break;
}
if (result.Count == 1 && index < subKeysNames.Length)