mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-19 06:50:18 +00:00
修复XChartsMgr.ContainsChart()接口异常
This commit is contained in:
@@ -79,7 +79,8 @@ namespace XCharts.Runtime
|
||||
public static bool ContainsChart(string chartName)
|
||||
{
|
||||
if (string.IsNullOrEmpty(chartName)) return false;
|
||||
return GetCharts(chartName) != null;
|
||||
var list = GetCharts(chartName);
|
||||
return list != null && list.Count > 0;
|
||||
}
|
||||
|
||||
public static bool ContainsChart(BaseChart chart)
|
||||
|
||||
Reference in New Issue
Block a user