Commit dae284f4 authored by Jasem Mutlaq's avatar Jasem Mutlaq

Do not start focus in preview capture

parent 43b0c54f
......@@ -1968,7 +1968,11 @@ IPState Capture::resumeSequence()
*/
bool Capture::startFocusIfRequired()
{
if (activeJob == nullptr || activeJob->getFrameType() != FRAME_LIGHT)
// Do not start focus if:
// 1. There is no active job, or
// 2. Target frame is not LIGHT
// 3. Capture is preview only
if (activeJob == nullptr || activeJob->getFrameType() != FRAME_LIGHT || activeJob->isPreview())
return false;
isRefocus = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment