From b84c6ec333c5aec69d42a2c44efdf783832bc831 Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Sat, 30 Aug 2025 16:58:57 +0800 Subject: [PATCH] Use an event, not a settable delegate property, for PluginHotkeyChanged --- Flow.Launcher.Core/Plugin/PluginManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Flow.Launcher.Core/Plugin/PluginManager.cs b/Flow.Launcher.Core/Plugin/PluginManager.cs index ad5824501..273f42f27 100644 --- a/Flow.Launcher.Core/Plugin/PluginManager.cs +++ b/Flow.Launcher.Core/Plugin/PluginManager.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.IO; @@ -31,7 +31,7 @@ namespace Flow.Launcher.Core.Plugin public static readonly HashSet GlobalPlugins = new(); public static readonly Dictionary NonGlobalPlugins = new(); - public static Action PluginHotkeyChanged { get; set; } + public static event Action PluginHotkeyChanged; // We should not initialize API in static constructor because it will create another API instance private static IPublicAPI api = null;