Update SD card status when view is shown.

This commit is contained in:
Jared Boone 2016-02-03 10:34:17 -08:00
parent 5d0b5d427a
commit e2a82061d4

View File

@ -32,14 +32,14 @@ SDCardStatusView::SDCardStatusView() {
add_children({ {
&text_status,
} });
on_status(sd_card::status());
}
void SDCardStatusView::on_show() {
sd_card_status_signal_token = sd_card::status_signal += [this](const sd_card::Status status) {
this->on_status(status);
};
on_status(sd_card::status());
}
void SDCardStatusView::on_hide() {