mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-08-11 22:12:11 +00:00
fixed plugin startup issue
This commit is contained in:
parent
bd9597c706
commit
6c67083c3a
@ -5,7 +5,7 @@ public class I18N : ILang
|
||||
public static readonly I18N I = new();
|
||||
private static readonly ILogger<I18N> LOG = Program.LOGGER_FACTORY.CreateLogger<I18N>();
|
||||
|
||||
private ILanguagePlugin? language = PluginFactory.BaseLanguage;
|
||||
private ILanguagePlugin? language;
|
||||
|
||||
private I18N()
|
||||
{
|
||||
|
||||
@ -85,6 +85,14 @@ public abstract partial class PluginBase : IPluginMetadata
|
||||
if(!string.IsNullOrWhiteSpace(parseError))
|
||||
issues.Add(parseError);
|
||||
|
||||
if (this is NoPlugin or NoPluginLanguage)
|
||||
{
|
||||
this.IsInternal = isInternal;
|
||||
this.IconSVG = string.Empty;
|
||||
this.baseIssues = issues;
|
||||
return;
|
||||
}
|
||||
|
||||
// Notice: when no icon is specified, the default icon will be used.
|
||||
this.TryInitIconSVG(out _, out var iconSVG);
|
||||
this.IconSVG = iconSVG;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user