mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-17 03:58:00 +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>
|
/// </summary>
|
||||||
public static void Setup()
|
public static void Setup()
|
||||||
{
|
{
|
||||||
|
if(IS_INITIALIZED)
|
||||||
|
return;
|
||||||
|
|
||||||
DATA_DIR = SettingsManager.DataDirectory!;
|
DATA_DIR = SettingsManager.DataDirectory!;
|
||||||
PLUGINS_ROOT = Path.Join(DATA_DIR, "plugins");
|
PLUGINS_ROOT = Path.Join(DATA_DIR, "plugins");
|
||||||
INTERNAL_PLUGINS_ROOT = Path.Join(PLUGINS_ROOT, ".internal");
|
INTERNAL_PLUGINS_ROOT = Path.Join(PLUGINS_ROOT, ".internal");
|
||||||
|
|||||||
Reference in new issue
Block a user