mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 19:57:57 +01:00
[PTRun]Add setting to disable input delay (#18724)
* [PTRun]Add setting to disable input delay * Address feedback and allow configuring delay * Address PR feedback
This commit is contained in:
@@ -132,6 +132,11 @@ namespace PowerLauncher.ViewModel
|
||||
// SetCustomPluginHotkey();
|
||||
}
|
||||
|
||||
public void RegisterSettingsChangeListener(System.ComponentModel.PropertyChangedEventHandler handler)
|
||||
{
|
||||
_settings.PropertyChanged += handler;
|
||||
}
|
||||
|
||||
private void RegisterResultsUpdatedEvent()
|
||||
{
|
||||
foreach (var pair in PluginManager.GetPluginsForInterface<IResultUpdated>())
|
||||
@@ -1102,5 +1107,15 @@ namespace PowerLauncher.ViewModel
|
||||
_hotkeyTimer.Reset();
|
||||
return recordedTime;
|
||||
}
|
||||
|
||||
public bool GetSearchQueryResultsWithDelaySetting()
|
||||
{
|
||||
return _settings.SearchQueryResultsWithDelay;
|
||||
}
|
||||
|
||||
public int GetSearchInputDelaySetting()
|
||||
{
|
||||
return _settings.SearchInputDelay;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user