From 6bd0840863fba3ee5f60edf5bf65a443efd854b7 Mon Sep 17 00:00:00 2001 From: Jaime Bernardo Date: Fri, 17 Sep 2021 15:49:40 +0100 Subject: [PATCH] [PT Run][Registry] show no results on query fail (#13244) --- .../Helper/RegistryHelper.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.Registry/Helper/RegistryHelper.cs b/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.Registry/Helper/RegistryHelper.cs index 90cf1965cd..7c890ba36b 100644 --- a/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.Registry/Helper/RegistryHelper.cs +++ b/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.Registry/Helper/RegistryHelper.cs @@ -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)