Hi Jasem, I'm no programmer so I doubt what I did to implement this is the right way but the two files I changed as follows...
/ekos/capture/capture.h
public slots:
Q_SCRIPTABLE Q_NOREPLY void pause(); // changed this line
Q_SCRIPTABLE Q_NOREPLY void toggleSequence(); // added this line
private slots:
// removed this line void toggleSequence();