This commit is contained in:
Erwin Ried 2020-05-29 00:55:57 +02:00
parent 9b010686b6
commit acbb100d64
2 changed files with 6 additions and 0 deletions

View File

@ -201,6 +201,11 @@ void RecordView::start() {
update_status_display();
}
void RecordView::on_hide() {
stop(); // Stop current recording
View::on_hide();
}
void RecordView::stop() {
if( is_active() ) {
capture_thread.reset();

View File

@ -59,6 +59,7 @@ public:
void start();
void stop();
void on_hide() override;
bool is_active() const;