0.81.1
GitHub
无
设置
更改后的GPO会反映在设置界面上。
我必须重新打开设置窗口。
6pp0gazn1#
你好,我是一个基于问题标题查找相似问题的AI机器人。请查看下面的问题,看看它们是否解决了你的问题。如果问题描述了你的问题,请考虑关闭此问题并为其他问题点赞,以帮助我们优先处理。谢谢!已关闭的相似问题:
注意:您可以通过点赞或点踩这条评论来给我反馈。
2uluyalo2#
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.PowerToys/src/settings-ui/Settings.UI/SettingsXAML/Views/PowerLauncherPage.xaml.csLines 42 to 68 in 8b8c75b| | _= Helper.GetFileWatcher(PowerLauncherSettings.ModuleName,"settings.json",()=> || | { || | if(Environment.TickCount <_lastIPCMessageSentTick+500) || | { || | // Don't try to update data from the file if we tried to write to it through IPC in the last 500 milliseconds. || | return; || | } || | || | PowerLauncherSettingspowerLauncherSettings=null; || | try || | { || | powerLauncherSettings=SettingsRepository.GetInstance(settingsUtils)?.SettingsConfig; || | } || | catch(IOExceptionex) || | { || | Logger.LogInfo(ex.Message); || | } || | || | if(powerLauncherSettings!=null&&!ViewModel.IsUpToDate(powerLauncherSettings)) || | { || | this.DispatcherQueue.TryEnqueue(()=> || | { || | DataContext=ViewModel=new PowerLauncherViewModel(powerLauncherSettings,SettingsRepository.GetInstance(settingsUtils), ShellPage.SendDefaultIPCMessage, App.IsDarkTheme); || | this.Bindings.Update(); || | }); || | } || | }); |
2条答案
按热度按时间6pp0gazn1#
你好,我是一个基于问题标题查找相似问题的AI机器人。
请查看下面的问题,看看它们是否解决了你的问题。如果问题描述了你的问题,请考虑关闭此问题并为其他问题点赞,以帮助我们优先处理。谢谢!
已关闭的相似问题:
注意:您可以通过点赞或点踩这条评论来给我反馈。
2uluyalo2#
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.
PowerToys/src/settings-ui/Settings.UI/SettingsXAML/Views/PowerLauncherPage.xaml.cs
Lines 42 to 68 in 8b8c75b
| | _= Helper.GetFileWatcher(PowerLauncherSettings.ModuleName,"settings.json",()=> |
| | { |
| | if(Environment.TickCount <_lastIPCMessageSentTick+500) |
| | { |
| | // Don't try to update data from the file if we tried to write to it through IPC in the last 500 milliseconds. |
| | return; |
| | } |
| | |
| | PowerLauncherSettingspowerLauncherSettings=null; |
| | try |
| | { |
| | powerLauncherSettings=SettingsRepository.GetInstance(settingsUtils)?.SettingsConfig; |
| | } |
| | catch(IOExceptionex) |
| | { |
| | Logger.LogInfo(ex.Message); |
| | } |
| | |
| | if(powerLauncherSettings!=null&&!ViewModel.IsUpToDate(powerLauncherSettings)) |
| | { |
| | this.DispatcherQueue.TryEnqueue(()=> |
| | { |
| | DataContext=ViewModel=new PowerLauncherViewModel(powerLauncherSettings,SettingsRepository.GetInstance(settingsUtils), ShellPage.SendDefaultIPCMessage, App.IsDarkTheme); |
| | this.Bindings.Update(); |
| | }); |
| | } |
| | }); |