mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-27 15:39:47 +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>
|
||||
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");
|
||||
|
Loading…
Reference in New Issue
Block a user