Do not show QR code icon when disabled

Solves #1876
This commit is contained in:
Edward Firmo
2024-03-10 22:33:27 +01:00
parent 9da0744d80
commit 79a82f764a
16 changed files with 31 additions and 17 deletions

View File

@@ -101,7 +101,7 @@ Text tft_version
Dragging : 0
Send Component ID : on press and release
Associated Keyboard: none
Text : 4.3.0b1
Text : 4.3.0b2
Max. Text Size : 9
Events

View File

@@ -13,6 +13,10 @@ Page home
Events
Preinitialize Event
back_page_id=0
if(qrcode.qrcode_value.txt=="")
{
vis bt_qrcode,0
}
if(is_entitypage01>0||is_entitypage02>0||is_entitypage03>0||is_entitypage04>0)
{
vis bt_entities,1
@@ -351,7 +355,7 @@ Text bt_qrcode
Events
Touch Release Event
if(bt_qrcode.txt!="")
if(qrcode.qrcode_value.txt!="")
{
page qrcode
}