Camera app: fix status label visibility

This commit is contained in:
Thomas Farstrike
2025-12-02 20:59:24 +01:00
parent 72caf6799c
commit 2b4e57b257
2 changed files with 2 additions and 2 deletions
+1
View File
@@ -5,6 +5,7 @@
- API: improve and cleanup animations
- API: SharedPreferences: add erase_all() function
- API: add defaults handling to SharedPreferences and only save non-defaults
- API: restore sys.path after starting app
- About app: add free, used and total storage space info
- AppStore app: remove unnecessary scrollbar over publisher's name
- Camera app: massive overhaul!
@@ -329,8 +329,7 @@ class CameraApp(Activity):
self.scanqr_mode = False
self.qr_label.set_text(lv.SYMBOL.EYE_OPEN)
status_label_text = self.status_label.get_text()
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
print(f"status label text {status_label_text} is a known message, not a QR code, hiding it...")
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
self.status_label_cont.add_flag(lv.obj.FLAG.HIDDEN)
# Check if it's necessary to restart the camera:
oldwidth = self.width