Skip to content

Commit 2b4e57b

Browse files
Camera app: fix status label visibility
1 parent 72caf67 commit 2b4e57b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- API: improve and cleanup animations
66
- API: SharedPreferences: add erase_all() function
77
- API: add defaults handling to SharedPreferences and only save non-defaults
8+
- API: restore sys.path after starting app
89
- About app: add free, used and total storage space info
910
- AppStore app: remove unnecessary scrollbar over publisher's name
1011
- Camera app: massive overhaul!

internal_filesystem/apps/com.micropythonos.camera/assets/camera_app.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,7 @@ def stop_qr_decoding(self):
329329
self.scanqr_mode = False
330330
self.qr_label.set_text(lv.SYMBOL.EYE_OPEN)
331331
status_label_text = self.status_label.get_text()
332-
if status_label_text in (self.STATUS_NO_CAMERA or self.STATUS_SEARCHING_QR or self.STATUS_FOUND_QR): # if it found a QR code, leave it
333-
print(f"status label text {status_label_text} is a known message, not a QR code, hiding it...")
332+
if status_label_text in (self.STATUS_NO_CAMERA, self.STATUS_SEARCHING_QR, self.STATUS_FOUND_QR): # if it found a QR code, leave it
334333
self.status_label_cont.add_flag(lv.obj.FLAG.HIDDEN)
335334
# Check if it's necessary to restart the camera:
336335
oldwidth = self.width

0 commit comments

Comments
 (0)