Skip to content

Commit 9c0b203

Browse files
SettingActivity: always show QR scan button for textarea
1 parent 8b6bc33 commit 9c0b203

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal_filesystem/lib/mpos/ui/setting_activity.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ def onCreate(self):
8080
self.dropdown.set_selected(i)
8181
break # no need to check the rest because only one can be selected
8282
else: # Textarea for other settings
83+
ui = "textarea"
8384
self.textarea = lv.textarea(settings_screen_detail)
8485
self.textarea.set_width(lv.pct(100))
8586
self.textarea.set_style_pad_all(mpos.ui.pct_of_display_width(2), lv.PART.MAIN)
@@ -117,7 +118,7 @@ def onCreate(self):
117118
cancel_label.center()
118119
cancel_btn.add_event_cb(lambda e: self.finish(), lv.EVENT.CLICKED, None)
119120

120-
if setting.get("enable_qr"): # Scan QR button for text settings
121+
if ui == "textarea": # Scan QR button for text settings
121122
cambutton = lv.button(settings_screen_detail)
122123
cambutton.align(lv.ALIGN.BOTTOM_MID, 0, 0)
123124
cambutton.set_size(lv.pct(100), lv.pct(30))

0 commit comments

Comments
 (0)