mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Core - Don't retry loading plugins after shutdown has been initialized
Meta - Update packages
This commit is contained in:
1 parent
34799fd440
commit
340a309f9a
15 files changed
+197
-219
No files matched your search
@@ -38,17 +38,6 @@ namespace Artemis.VisualScripting.Ninject
|
||||
|
||||
// Evaluator
|
||||
Bind<INoStringEvaluator>().To<NoStringEvaluator>().InSingletonScope();
|
||||
|
||||
// If needed
|
||||
InjectUserDefinedFunctions();
|
||||
}
|
||||
|
||||
private void InjectUserDefinedFunctions()
|
||||
{
|
||||
IFunctionReader? functionReader = (IFunctionReader?) Kernel?.GetService(typeof(IFunctionReader));
|
||||
if (functionReader == null)
|
||||
throw new Exception($"Could not get service of type {nameof(IFunctionReader)}.");
|
||||
NoStringFunctionsInitializer.InitializeFunctions(functionReader, typeof(NoStringNinjectModule));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user