mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 19:57:57 +01:00
Merge branch 'yuleng/cmdpal/settings2' of https://github.com/moooyo/PowerToys into yuleng/cmdpal/settings2
This commit is contained in:
@@ -12,9 +12,6 @@ using Windows.Win32;
|
|||||||
using Windows.Win32.System.Com;
|
using Windows.Win32.System.Com;
|
||||||
using WinRT;
|
using WinRT;
|
||||||
|
|
||||||
#pragma warning disable IDE0005 // Using directive is unnecessary - needed for HostSettings
|
|
||||||
#pragma warning restore IDE0005
|
|
||||||
|
|
||||||
namespace Microsoft.CmdPal.UI.ViewModels.Models;
|
namespace Microsoft.CmdPal.UI.ViewModels.Models;
|
||||||
|
|
||||||
public class ExtensionWrapper : IExtensionWrapper
|
public class ExtensionWrapper : IExtensionWrapper
|
||||||
|
|||||||
@@ -36,13 +36,6 @@ public static class HostSettingsManager
|
|||||||
internal static void Update(IHostSettings settings)
|
internal static void Update(IHostSettings settings)
|
||||||
{
|
{
|
||||||
_current = settings;
|
_current = settings;
|
||||||
#if DEBUG
|
|
||||||
var subscriberCount = SettingsChanged?.GetInvocationList().Length ?? 0;
|
|
||||||
ExtensionHost.LogMessage($"[HostSettingsManager] Update called, subscriber count: {subscriberCount}");
|
|
||||||
#endif
|
|
||||||
SettingsChanged?.Invoke();
|
SettingsChanged?.Invoke();
|
||||||
#if DEBUG
|
|
||||||
ExtensionHost.LogMessage($"[HostSettingsManager] SettingsChanged event invoked");
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user