Skip to content

Commit 6bd0840

Browse files
[PT Run][Registry] show no results on query fail (microsoft#13244)
1 parent 323f41d commit 6bd0840

File tree

1 file changed

+2
-1
lines changed
  • src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.Registry/Helper

1 file changed

+2
-1
lines changed

src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.Registry/Helper/RegistryHelper.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ internal static ICollection<RegistryEntry> SearchForSubKey(in RegistryKey baseKe
104104

105105
if (result.Count == 0)
106106
{
107-
return FindSubKey(subKey, string.Empty);
107+
// If a subKey can't be found, show no results.
108+
break;
108109
}
109110

110111
if (result.Count == 1 && index < subKeysNames.Length)

0 commit comments

Comments
 (0)