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 also in the first capture.</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 13:03:57.475008696 +0100 @@ -1414,7 +1414,22 @@ // 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 also in the first capture. + const int seqDelay = activeJob()->getCoreProperty(SequenceJob::SJ_Delay).toInt(); + QString signature = activeJob()->getSignature(); + int count = state()->capturedFramesCount(signature); + if (Options::extraPause() && seqDelay > 0 && count < 1) + { + 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);