mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-27 23:59:48 +00:00
Prevent re-initialization of the plugin factory when already initialized
This commit is contained in:
parent
7bf5b5cf7a
commit
5fe3e1cb34
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user