[OOBE] Fix starting PowerToys Run (#13455)

This commit is contained in:
Jaime Bernardo
2021-09-27 15:55:00 +01:00
committed by GitHub
parent acadd069e8
commit 26e8d0d976

View File

@@ -84,6 +84,10 @@ namespace PowerLauncher.ViewModel
public void RegisterHotkey(IntPtr hwnd)
{
Log.Info("RegisterHotkey()", GetType());
// Allow OOBE to call PowerToys Run.
NativeEventWaiter.WaitForEventLoop(Constants.PowerLauncherSharedEvent(), OnHotkey);
_settings.PropertyChanged += (s, e) =>
{
if (e.PropertyName == nameof(PowerToysRunSettings.Hotkey))