diff --git a/xml/menu_new_layout_gen.py b/xml/menu_new_layout_gen.py
index e795a084..eb82c7a7 100644
--- a/xml/menu_new_layout_gen.py
+++ b/xml/menu_new_layout_gen.py
@@ -88,15 +88,26 @@
out_xml('\t 225 \r\n')
out_xml('\t 296 \r\n')
str_con = ""
+ str_con_var = ""
if spl[4] != '-':
str_con += spl[4] + '.Button,'
if spl[5] != '-':
str_con += spl[5] + '.Button,'
if spl[6] != '-':
str_con += spl[6] + '.Button,'
-
+
+ if spl[4] != '-':
+ str_con_var += spl[4] + '-'
+ if spl[5] != '-':
+ str_con_var += spl[5] + '-'
+ if spl[6] != '-':
+ str_con_var += spl[6] + '-'
+
+ str_con_var = str_con_var.replace("-", "")
if touch_less_gen == True:
- str_con += "Disable=Invisible"
+ str_con += "Disable=Invisible,"
+
+ str_con += "$Sum" + str_con_var
out_xml( '\t Flag( '+ str_con + ') \r\n')
@@ -122,7 +133,7 @@
out_xml( '\t