mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-02-26 01:21:15 -05: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();
|
update_status_display();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void RecordView::on_hide() {
|
||||||
|
stop(); // Stop current recording
|
||||||
|
View::on_hide();
|
||||||
|
}
|
||||||
|
|
||||||
void RecordView::stop() {
|
void RecordView::stop() {
|
||||||
if( is_active() ) {
|
if( is_active() ) {
|
||||||
capture_thread.reset();
|
capture_thread.reset();
|
||||||
|
@ -59,6 +59,7 @@ public:
|
|||||||
|
|
||||||
void start();
|
void start();
|
||||||
void stop();
|
void stop();
|
||||||
|
void on_hide() override;
|
||||||
|
|
||||||
bool is_active() const;
|
bool is_active() const;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user