Merge branch 'let-preview-stitch-cancel' into 'v3'

Allow preview to cancel!

See merge request openflexure/openflexure-microscope-server!359
This commit is contained in:
Julian Stirling 2025-08-13 15:18:13 +00:00
commit af93db7de8
4 changed files with 52 additions and 13 deletions

View file

@ -466,7 +466,7 @@ class SmartScanThing(lt.Thing):
self._scan_logger.info("Waiting for background processes to finish...")
if self._preview_stitcher is not None:
self._preview_stitcher.wait()
self._preview_stitcher.wait(self._cancel)
if self._scan_data.stitch_automatically:
self._scan_logger.info("Stitching final image (may take some time)...")