mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 04:37:30 +02:00
[OOBE] Fix starting PowerToys Run (#13455)
This commit is contained in:
@@ -84,6 +84,10 @@ namespace PowerLauncher.ViewModel
|
|||||||
public void RegisterHotkey(IntPtr hwnd)
|
public void RegisterHotkey(IntPtr hwnd)
|
||||||
{
|
{
|
||||||
Log.Info("RegisterHotkey()", GetType());
|
Log.Info("RegisterHotkey()", GetType());
|
||||||
|
|
||||||
|
// Allow OOBE to call PowerToys Run.
|
||||||
|
NativeEventWaiter.WaitForEventLoop(Constants.PowerLauncherSharedEvent(), OnHotkey);
|
||||||
|
|
||||||
_settings.PropertyChanged += (s, e) =>
|
_settings.PropertyChanged += (s, e) =>
|
||||||
{
|
{
|
||||||
if (e.PropertyName == nameof(PowerToysRunSettings.Hotkey))
|
if (e.PropertyName == nameof(PowerToysRunSettings.Hotkey))
|
||||||
|
|||||||
Reference in New Issue
Block a user