diff -Naur Projects/kstars/kstars/kstars.kcfg Projects/kstars/kstars/kstars.kcfg --- Projects/kstars/kstars/kstars.kcfg 2024-01-07 17:15:25.302156000 +0100 +++ Projects/kstars/kstars/kstars.kcfg 2024-01-07 17:09:53.385560774 +0100 @@ -2849,6 +2849,10 @@ true + + + false + false diff -Naur Projects/kstars/kstars/ekos/opsekos.ui Projects/kstars/kstars/ekos/opsekos.ui --- Projects/kstars/kstars/ekos/opsekos.ui 2024-01-07 08:25:24.881146000 +0100 +++ Projects/kstars/kstars/ekos/opsekos.ui 2024-01-07 16:51:31.487662296 +0100 @@ -991,6 +991,36 @@ + + + Extra + + + + true + + + + 10 + 10 + 461 + 22 + + + + <html><head/><body><p>It's fine to add delay to the first capture in the scheduler. But it cannot be used in standard acquisition because it sets a double delay from the second shot onwards.</p></body></html> + + + + + + Pause in first Capture. + + + false + + + diff -Naur Projects/kstars/kstars/ekos/capture/captureprocess.cpp Projects/kstars/kstars/ekos/capture/captureprocess.cpp --- Projects/kstars/kstars/ekos/capture/captureprocess.cpp 2024-01-09 09:48:58.987104000 +0100 +++ Projects/kstars/kstars/ekos/capture/captureprocess.cpp 2024-01-09 09:55:04.327599378 +0100 @@ -1414,7 +1414,21 @@ // now hand over the control of capturing to the sequence job. As soon as capturing // has started, the sequence job will report the result with the captureStarted() event // that will trigger Capture::captureStarted() - activeJob()->startCapturing(state()->getRefocusState()->isAutoFocusReady(), + // [pcxz] + // It's fine to add delay to the first capture in the scheduler. + // but it cannot be used in standard acquisition because it sets a double delay from the second shot onwards. + const int seqDelay = activeJob()->getCoreProperty(SequenceJob::SJ_Delay).toInt(); + if (Options::extraPause() && seqDelay > 0) + { + state()->setCaptureState(CAPTURE_WAITING); + QTimer::singleShot(seqDelay, this, [this]() + { + activeJob()->startCapturing(state()->getRefocusState()->isAutoFocusReady(), + FITS_NORMAL); + }); + } + else + activeJob()->startCapturing(state()->getRefocusState()->isAutoFocusReady(), activeJob()->getCalibrationStage() == SequenceJobState::CAL_CALIBRATION ? FITS_CALIBRATE : FITS_NORMAL);