mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-14 02:33:48 +00:00
Prevent re-initialization of the plugin factory when already initialized
This commit is contained in:
1 file changed
+3
@@ -39,6 +39,9 @@ public static partial class PluginFactory
|
||||
/// </summary>
|
||||
public static void Setup()
|
||||
{
|
||||
if(IS_INITIALIZED)
|
||||
return;
|
||||
|
||||
DATA_DIR = SettingsManager.DataDirectory!;
|
||||
PLUGINS_ROOT = Path.Join(DATA_DIR, "plugins");
|
||||
INTERNAL_PLUGINS_ROOT = Path.Join(PLUGINS_ROOT, ".internal");
|
||||
|
||||
Reference in new issue
Block a user