mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-09-12 09:39:30 +00:00
Rename UIRecordView::on_tick_second() -> update_status_display().
This commit is contained in:
@@ -317,6 +317,10 @@ Optional<File::Error> RecordView::write_metadata_file(const std::string& filenam
|
|||||||
}
|
}
|
||||||
|
|
||||||
void RecordView::on_tick_second() {
|
void RecordView::on_tick_second() {
|
||||||
|
update_status_display();
|
||||||
|
}
|
||||||
|
|
||||||
|
void RecordView::update_status_display() {
|
||||||
if( is_active() ) {
|
if( is_active() ) {
|
||||||
const auto dropped_percent = std::min(99U, capture_thread->state().dropped_percent());
|
const auto dropped_percent = std::min(99U, capture_thread->state().dropped_percent());
|
||||||
const auto s = to_string_dec_uint(dropped_percent, 2, ' ') + "\%";
|
const auto s = to_string_dec_uint(dropped_percent, 2, ' ') + "\%";
|
||||||
|
|||||||
@@ -67,6 +67,7 @@ private:
|
|||||||
Optional<File::Error> write_metadata_file(const std::string& filename);
|
Optional<File::Error> write_metadata_file(const std::string& filename);
|
||||||
|
|
||||||
void on_tick_second();
|
void on_tick_second();
|
||||||
|
void update_status_display();
|
||||||
|
|
||||||
void handle_error(const File::Error error);
|
void handle_error(const File::Error error);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user