mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-21 20:58:53 -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
2 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue