INTER: add check if empty buttonRemoveCup, init it.

This commit is contained in:
Pakin 2024-10-01 17:11:48 +07:00
parent d00b7702cd
commit 9133b6e076

View file

@ -210,6 +210,19 @@
DEBUGVAR $51-03-01-0035.Price
Var PromotionIDCurrentOrder = 0
RootLayoutVisible 3 "show"
; reset-if-empty
DEBUGVAR buttonRemoveCup
If buttonRemoveCup = "Invisible" Then
Else
If buttonRemoveCup = "Enable" Then
Else
Var buttonRemoveCup = "Invisible"
EndIf
EndIf
</EventOpen>
<Timeout> 1000 </Timeout>
<EventTimeout>
@ -232,6 +245,8 @@
; zone cup on arm
DEBUGVAR CheckCupStateDoorCupClose
DEBUGVAR CupOnArm
If CupOnArm = "true" Then
If CheckCupStateDoorCupClose = "" Then
@ -246,6 +261,8 @@
Var buttonRemoveCup = "Invisible"
EndIf
EndIf
DEBUGVAR MachineStage
DEBUGVAR buttonRemoveCup
Refresh