mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-23 06:51:27 -04:00
Unclever first attempt at display sleep.
This commit is contained in:
parent
1caf6952d8
commit
894d4b955c
6 changed files with 48 additions and 12 deletions
|
@ -22,6 +22,7 @@
|
|||
#include "ui_navigation.hpp"
|
||||
|
||||
#include "portapack.hpp"
|
||||
#include "event_m0.hpp"
|
||||
#include "receiver_model.hpp"
|
||||
|
||||
#include "ui_setup.hpp"
|
||||
|
@ -42,6 +43,7 @@ SystemStatusView::SystemStatusView() {
|
|||
add_children({ {
|
||||
&button_back,
|
||||
&title,
|
||||
&button_sleep,
|
||||
&sd_card_status_view,
|
||||
} });
|
||||
sd_card_status_view.set_parent_rect({ 28 * 8, 0 * 16, 2 * 8, 1 * 16 });
|
||||
|
@ -51,6 +53,11 @@ SystemStatusView::SystemStatusView() {
|
|||
this->on_back();
|
||||
}
|
||||
};
|
||||
|
||||
button_sleep.on_select = [this](Button&) {
|
||||
DisplaySleepMessage message;
|
||||
EventDispatcher::message_map().send(&message);
|
||||
};
|
||||
}
|
||||
|
||||
void SystemStatusView::set_back_visible(bool new_value) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue