mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
Fix for https://github.com/eried/portapack-mayhem/issues/35 Capture app hang on exit
This commit is contained in:
parent
9b010686b6
commit
acbb100d64
@ -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();
|
||||
|
@ -59,6 +59,7 @@ public:
|
||||
|
||||
void start();
|
||||
void stop();
|
||||
void on_hide() override;
|
||||
|
||||
bool is_active() const;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user