From 9ea8fb70449a4ce0a47a7499b782794c3495db25 Mon Sep 17 00:00:00 2001 From: Agnibho Mondal Date: Fri, 10 Nov 2023 03:17:43 +0530 Subject: [PATCH] Show DAW only if true --- renderbox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderbox.py b/renderbox.py index 864df92..13e43f8 100644 --- a/renderbox.py +++ b/renderbox.py @@ -113,7 +113,7 @@ class UnrenderBox(QDialog): text=text+""+value.upper()+"
" text=text+"
" for attr, value in prescription.items(): - if(attr not in ["prescriber", "custom", "properties", "file"] and len(str(value))>0): + if(attr not in ["prescriber", "custom", "properties", "file"] and len(str(value))>0 and (attr not in ["daw"] or value)): text=text+""+attr.upper()+"
" text=text+str(value)+"
" self.display.setText(text) -- 2.39.5