move toggle invisible custom coffee condition from button to function 2

This commit is contained in:
kenta-work 2023-09-01 09:05:10 +07:00
parent b0611e1507
commit 6400c87422

View file

@ -3369,28 +3369,8 @@
If showShotEnable = "Press" Then
Var showShotEnable = "Enable"
If TOPPING7 = "water-level" Then
Var showCustomCoffee = "Enable"
EndIf
If TOPPING8 = "coffee-quantity" Then
Var showCustomCoffee = "Enable"
EndIf
If TOPPING9 = "single-shot-espv2" Then
Var showCustomCoffee = "Enable"
EndIf
If TOPPING10 = "tampping-espv2" Then
Var showCustomCoffee = "Enable"
EndIf
Else
Var showShotEnable = "Press"
; Invisible showCustomCoffee
Var showCustomCoffee = "Invisible"
EndIf
Function 2
@ -3422,27 +3402,8 @@
If showShotEnable = "Press" Then
Var showShotEnable = "Enable"
If TOPPING7 = "water-level" Then
Var showCustomCoffee = "Enable"
EndIf
If TOPPING8 = "coffee-quantity" Then
Var showCustomCoffee = "Enable"
EndIf
If TOPPING9 = "single-shot-espv2" Then
Var showCustomCoffee = "Enable"
EndIf
If TOPPING10 = "tampping-espv2" Then
Var showCustomCoffee = "Enable"
EndIf
Else
Var showShotEnable = "Press"
; Invisible showCustomCoffee
Var showCustomCoffee = "Invisible"
EndIf
Function 2
@ -5392,6 +5353,27 @@
DEBUGVAR showCustomCoffee
DEBUGVAR CustomCoffeeDefault
If showShotEnable = "Press" Then
; Invisible showCustomCoffee
Var showCustomCoffee = "Invisible"
Else
If TOPPING7 = "water-level" Then
Var showCustomCoffee = "Enable"
EndIf
If TOPPING8 = "coffee-quantity" Then
Var showCustomCoffee = "Enable"
EndIf
If TOPPING9 = "single-shot-espv2" Then
Var showCustomCoffee = "Enable"
EndIf
If TOPPING10 = "tampping-espv2" Then
Var showCustomCoffee = "Enable"
EndIf
EndIf
If showCustomCoffee = "Enable" Then
If showCoffeeWater = "Enable" Then