Disable some camera resolutions

This commit is contained in:
Thomas Farstrike
2026-01-14 00:04:33 +01:00
parent fd548d45f1
commit a0c63cc78b
2 changed files with 7 additions and 7 deletions
@@ -121,8 +121,8 @@ class CameraActivity(Activity):
if self.scanqr_mode or self.scanqr_intent:
self.start_qr_decoding()
if not self.cam and self.scanqr_mode:
print("No camera found, stopping camera app")
self.finish()
self.status_label.set_text(self.STATUS_NO_CAMERA)
# leave it open so the user can read the error and maybe open the settings
else:
self.load_settings_cached()
self.start_cam()
@@ -91,12 +91,12 @@ class CameraSettingsActivity(Activity):
("640x480", "640x480"),
("640x640", "640x640"),
("720x720", "720x720"),
("800x600", "800x600"),
("800x800", "800x800"),
("1024x768", "1024x768"),
#("800x600", "800x600"), # somehow this fails to initialize
#("800x800", "800x800"), # somehow this fails to initialize
("960x960", "960x960"),
("1280x720", "1280x720"),
("1024x1024", "1024x1024"),
#("1024x768", "1024x768"), # Makes more sense to show it after, even though resolution is lower than 960x960
#("1280x720", "1280x720"), # weird and same resolution as 960x960
#("1024x1024", "1024x1024"), # somehow this fails to initialize
# Disabled because they use a lot of RAM and are very slow:
#("1280x1024", "1280x1024"),
#("1280x1280", "1280x1280"),