mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 11:16:51 +02:00
[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:
@@ -236,21 +236,38 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
|
||||
}
|
||||
}
|
||||
|
||||
public bool IgnoreHotkeysInFullScreen
|
||||
{
|
||||
get
|
||||
{
|
||||
return settings.properties.ignore_hotkeys_in_fullscreen;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
if (settings.properties.ignore_hotkeys_in_fullscreen != value)
|
||||
{
|
||||
settings.properties.ignore_hotkeys_in_fullscreen = value;
|
||||
UpdateSettings();
|
||||
}
|
||||
}
|
||||
public bool IgnoreHotkeysInFullScreen
|
||||
{
|
||||
get
|
||||
{
|
||||
return settings.properties.ignore_hotkeys_in_fullscreen;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
if (settings.properties.ignore_hotkeys_in_fullscreen != value)
|
||||
{
|
||||
settings.properties.ignore_hotkeys_in_fullscreen = value;
|
||||
UpdateSettings();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public bool ClearInputOnLaunch
|
||||
{
|
||||
get
|
||||
{
|
||||
return settings.properties.clear_input_on_launch;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
if (settings.properties.clear_input_on_launch != value)
|
||||
{
|
||||
settings.properties.clear_input_on_launch = value;
|
||||
UpdateSettings();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user