[PowerToys Run] Implemented Setting to Clear Search Query when PowerToys Run is Launched (#4995)

* Implemented Clear Input On Launch

* Move logic to seperate command on viewmodel

* Added Settings Sync
Moved logic from OnDeactivated to OnActivated

* Complete after testing

Co-authored-by: Roy <royvou@hotmailcom>
This commit is contained in:
Roy
2020-07-15 02:54:21 +02:00
committed by GitHub
parent f59abe23c3
commit 78946c11ea
10 changed files with 75 additions and 16 deletions

View File

@@ -26,6 +26,8 @@ namespace Microsoft.PowerToys.Settings.UI.Lib
public bool ignore_hotkeys_in_fullscreen { get; set; }
public bool clear_input_on_launch { get; set; }
public PowerLauncherProperties()
{
open_powerlauncher = new HotkeySettings();
@@ -35,6 +37,7 @@ namespace Microsoft.PowerToys.Settings.UI.Lib
search_result_preference = "most_recently_used";
search_type_preference = "application_name";
ignore_hotkeys_in_fullscreen = false;
clear_input_on_launch = false;
}
}
}