优化Theme

This commit is contained in:
monitor1394
2021-04-01 12:13:51 +08:00
parent eda93f0776
commit 3810082cec
3 changed files with 6 additions and 2 deletions

View File

@@ -152,7 +152,7 @@ namespace XCharts
public static bool AddJsonTheme(TextAsset theme)
{
if (theme == null) return false;
if (theme == null || string.IsNullOrEmpty(theme.text)) return false;
if (!Instance.m_CustomThemes.Contains(theme))
{
Instance.m_CustomThemes.Add(theme);