From 81e0e14008a2f7b2f4b955d8dfee6852fd7403e5 Mon Sep 17 00:00:00 2001 From: tameemzabalawi <80329623+tameemzabalawi@users.noreply.github.com> Date: Fri, 24 Dec 2021 11:56:46 +0100 Subject: [PATCH] [PowerToys Run] Fix Previous query not erased when closing (#15121) --- src/modules/launcher/PowerLauncher/ViewModel/MainViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/launcher/PowerLauncher/ViewModel/MainViewModel.cs b/src/modules/launcher/PowerLauncher/ViewModel/MainViewModel.cs index f89518a9f1..76d61f3d2a 100644 --- a/src/modules/launcher/PowerLauncher/ViewModel/MainViewModel.cs +++ b/src/modules/launcher/PowerLauncher/ViewModel/MainViewModel.cs @@ -885,7 +885,7 @@ namespace PowerLauncher.ViewModel } else { - if (_settings.ClearInputOnLaunch && Results.Visibility == Visibility.Visible) + if (_settings.ClearInputOnLaunch) { ClearQueryCommand.Execute(null); Task.Run(() =>