mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
Update SD card status when view is shown.
This commit is contained in:
parent
5d0b5d427a
commit
e2a82061d4
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user