Setting AllPlugins to empty list in case PluginManager.Save/Load/ReloadData is called before plugins are loaded (#7173)

This commit is contained in:
ryanbodrug-microsoft 2020-10-08 16:32:31 -07:00 committed by GitHub
parent 38e03e6bb0
commit 4451403c1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,7 @@ namespace Wox.Core.Plugin
/// <summary>
/// Gets directories that will hold Wox plugin directory
/// </summary>
public static List<PluginPair> AllPlugins { get; private set; }
public static List<PluginPair> AllPlugins { get; private set; } = new List<PluginPair>();
public static IPublicAPI API { get; private set; }