From 7d794d1a22a342588fd5f8f7988cc593b7e29885 Mon Sep 17 00:00:00 2001 From: Julian Stirling Date: Tue, 7 Oct 2025 10:52:06 +0100 Subject: [PATCH] Stop showing other picamera calibration buttons in calibration wizard --- .../things/camera/picamera.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/openflexure_microscope_server/things/camera/picamera.py b/src/openflexure_microscope_server/things/camera/picamera.py index 6bc089fc..40f28f8b 100644 --- a/src/openflexure_microscope_server/things/camera/picamera.py +++ b/src/openflexure_microscope_server/things/camera/picamera.py @@ -881,6 +881,12 @@ class StreamingPiCamera2(BaseCamera): notify_on_success=True, success_message="Finished recalibration.", ), + ] + + @lt.thing_property + def secondary_calibration_actions(self) -> list[ActionButton]: + """The calibration actions that appear only in settings panel.""" + return [ action_button_for( self.auto_expose_from_minimum, submit_label="Auto Gain & Shutter Speed", @@ -905,12 +911,6 @@ class StreamingPiCamera2(BaseCamera): "images captured afterwards." ), ), - ] - - @lt.thing_property - def secondary_calibration_actions(self) -> list[ActionButton]: - """The calibration actions that appear only in settings panel.""" - return [ action_button_for( self.flat_lens_shading, submit_label="Disable Flat Field Correction",