microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
107.38k stars 6.34k forks source link

[Settings > PowerToys Run page] Settings not updating instantly if PT Run process updates the plugin config #33512

Open htcfreek opened 3 weeks ago

htcfreek commented 3 weeks ago

Microsoft PowerToys version

0.81.1

Installation method

GitHub

Running as admin

None

Area(s) with issue?

Settings

Steps to reproduce

  1. Open Settings for PT Run.
  2. Disable PT Run.
  3. Set enabled GPO for a plugin.
  4. Enable PT Run in settings.

✔️ Expected Behavior

The changed GPO is reflected by settings ui.

❌ Actual Behavior

I have to reopen the settings window.

Other Software

No response

github-actions[bot] commented 3 weeks ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

htcfreek commented 3 weeks ago

I tried to fix it. But I don't find the exact error. It seems that the FileWatcher in the code of the Page is not working correctly and mostly gets not triggered.

https://github.com/microsoft/PowerToys/blob/8b8c75b9a54a342660ce8475989ef283fe39e8fe/src/settings-ui/Settings.UI/SettingsXAML/Views/PowerLauncherPage.xaml.cs#L42-L68