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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user