mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-01-12 07:49:32 -05:00
Rename UIRecordView::on_tick_second() -> update_status_display().
This commit is contained in:
parent
19e5e111a9
commit
44fb66b4f9
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user