1
1
mirror of https://github.com/KenanZhu/AutoLibrary.git synced 2026-06-17 23:13:03 +08:00

fix(gui): 编排窗口代码生成统一使用 END IF 结束块

This commit is contained in:
2026-05-18 20:43:48 +08:00
parent 23467c1d3d
commit 5800437ba2
+2 -2
View File
@@ -153,12 +153,12 @@ class ALAutoScriptOrchDialog(QDialog):
for block in self._blocks:
blockType = block.getBlockType()
if blockType == "IF" and prevType is not None:
parts.append("ENDIF")
parts.append("END IF")
lines = block.toScriptLines()
parts.extend(lines)
prevType = blockType
if self._blocks and self._blocks[0].getBlockType() == "IF":
parts.append("ENDIF")
parts.append("END IF")
return "\n".join(parts)
@Slot()