fix: 配置加载后无限刷新修复

This commit is contained in:
kercylan98
2023-07-05 21:29:58 +08:00
parent b234568e56
commit 6634aa675e
2 changed files with 17 additions and 13 deletions
+4
View File
@@ -264,6 +264,10 @@ func (slf *Config) initData() error {
if slf.horizontal {
c := slf.matrix.Get(x+i, y)
if c == nil {
if currentIndex < slf.IndexCount {
stop = true
break
}
value = getValueZero(field.SourceType)
zero = true
} else if currentIndex < slf.IndexCount && len(strings.TrimSpace(c.String())) == 0 {