Restrict pausing to image capturing
The capturing process can currently be paused at arbitrary stages, not only during capturing. This behavior cannot be covered by the current state model of the Capture module. But fixing this needs significant refactoring.
As an intermediate solution, a warning is issued when the "Pause" button is pressed but no capture is running. If the Capture module is not in the capturing mode, pressing the pause button is ignored.
Test Plan: Test pressing the pause button during a meridian flip or the post flip alignment. Without this fix, the Capture module gives the impression, that a pause is planned. But after completing the re-alignment after a meridian flip, capturing continues. With this fix, pausing is not possible until the Capture module is capturing frames.
Reviewers: mutlaqja, TallFurryMan
Reviewed By: mutlaqja
Tags: KDE Edu
Differential Revision: https://phabricator.kde.org/D23805