You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Camera app: fix status label visibility
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user