Skip to content

Commit b840eef

Browse files
camera_app: leave QR result on screen if found
1 parent 7bce504 commit b840eef

File tree

1 file changed

+1
-1
lines changed
  • internal_filesystem/apps/com.micropythonos.camera/assets

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ def qrdecode_one(self):
162162
if not result:
163163
self.status_label.set_text(self.status_label_text_searching)
164164
else:
165-
self.stop_qr_decoding()
166165
result = remove_bom(result)
167166
result = print_qr_buffer(result)
168167
print(f"QR decoding found: {result}")
@@ -171,6 +170,7 @@ def qrdecode_one(self):
171170
self.finish()
172171
else:
173172
self.status_label.set_text(result) # in the future, the status_label text should be copy-paste-able
173+
self.stop_qr_decoding()
174174
except ValueError as e:
175175
print("QR ValueError: ", e)
176176
self.status_label.set_text(self.status_label_text_searching)

0 commit comments

Comments
 (0)