From 0e33d7e5d036998bfa4da3530d2353b390a53f8d Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Tue, 21 Jun 2016 11:35:41 -0700 Subject: [PATCH] Refresh UIRecordVide status display when appropriate. --- firmware/application/ui_record_view.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/firmware/application/ui_record_view.cpp b/firmware/application/ui_record_view.cpp index cdc9d7aa..6fb74e66 100644 --- a/firmware/application/ui_record_view.cpp +++ b/firmware/application/ui_record_view.cpp @@ -205,6 +205,8 @@ void RecordView::set_sampling_rate(const size_t new_sampling_rate) { text_record_dropped.hidden(sampling_rate == 0); text_time_available.hidden(sampling_rate == 0); rect_background.hidden(sampling_rate != 0); + + update_status_display(); } } @@ -289,6 +291,8 @@ void RecordView::start() { } ); } + + update_status_display(); } void RecordView::stop() { @@ -296,6 +300,8 @@ void RecordView::stop() { capture_thread.reset(); button_record.set_bitmap(&bitmap_record); } + + update_status_display(); } Optional RecordView::write_metadata_file(const std::string& filename) {