From 4451403c1e81bcf955ba14e874009a75be42f626 Mon Sep 17 00:00:00 2001 From: ryanbodrug-microsoft <56318517+ryanbodrug-microsoft@users.noreply.github.com> Date: Thu, 8 Oct 2020 16:32:31 -0700 Subject: [PATCH] Setting AllPlugins to empty list in case PluginManager.Save/Load/ReloadData is called before plugins are loaded (#7173) --- src/modules/launcher/Wox.Core/Plugin/PluginManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/launcher/Wox.Core/Plugin/PluginManager.cs b/src/modules/launcher/Wox.Core/Plugin/PluginManager.cs index 0a821a2998..53c2bbf663 100644 --- a/src/modules/launcher/Wox.Core/Plugin/PluginManager.cs +++ b/src/modules/launcher/Wox.Core/Plugin/PluginManager.cs @@ -27,7 +27,7 @@ namespace Wox.Core.Plugin /// /// Gets directories that will hold Wox plugin directory /// - public static List AllPlugins { get; private set; } + public static List AllPlugins { get; private set; } = new List(); public static IPublicAPI API { get; private set; }