mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-03 12:06:52 -04:00
MsgDblReg fix (#2144)
This commit is contained in:
parent
963c6e5238
commit
e666eb1797
2 changed files with 29 additions and 6 deletions
|
@ -31,7 +31,13 @@
|
|||
namespace ui {
|
||||
class BattinfoView : public View {
|
||||
public:
|
||||
~BattinfoView();
|
||||
BattinfoView(NavigationView& nav);
|
||||
BattinfoView(const BattinfoView&) = delete;
|
||||
BattinfoView(BattinfoView&&) = delete;
|
||||
BattinfoView& operator=(const BattinfoView&) = delete;
|
||||
BattinfoView& operator=(BattinfoView&&) = delete;
|
||||
|
||||
void focus() override;
|
||||
std::string title() const override { return "Battery"; };
|
||||
|
||||
|
@ -70,12 +76,9 @@ class BattinfoView : public View {
|
|||
Button button_exit{
|
||||
{72, 17 * 16, 96, 32},
|
||||
"Back"};
|
||||
|
||||
MessageHandlerRegistration message_handler_frame_sync{
|
||||
Message::ID::DisplayFrameSync,
|
||||
[this](const Message* const) {
|
||||
this->on_timer();
|
||||
}};
|
||||
static msg_t static_fn(void* arg);
|
||||
static bool needRun;
|
||||
Thread* thread{nullptr};
|
||||
};
|
||||
|
||||
} /* namespace ui */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue