From 9133b6e076b6efa4ae7e0be1201398696a7ff6a2 Mon Sep 17 00:00:00 2001 From: Pakin Date: Tue, 1 Oct 2024 17:11:48 +0700 Subject: [PATCH] INTER: add check if empty buttonRemoveCup, init it. --- xml/page_catalog.lxml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/xml/page_catalog.lxml b/xml/page_catalog.lxml index 0e62a804..d4fe538e 100644 --- a/xml/page_catalog.lxml +++ b/xml/page_catalog.lxml @@ -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 1000 @@ -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