1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-22 07:45:14 +03:00

Update to latest libopenui

This commit is contained in:
Bertrand Songis 2020-11-26 08:24:02 +01:00
parent 078654905b
commit 6e7f8176ed
No known key found for this signature in database
GPG key ID: F189F79290FEC50F
4 changed files with 8 additions and 6 deletions

View file

@ -113,9 +113,10 @@ void FullScreenDialog::checkEvents()
}
}
void FullScreenDialog::deleteLater(bool detach)
void FullScreenDialog::deleteLater(bool detach, bool trash)
{
#if defined(HARDWARE_KEYS)
#warning "TODO remove previousFocus from here, and use layers"
if (previousFocus) {
previousFocus->setFocus(SET_FOCUS_DEFAULT);
}
@ -125,7 +126,7 @@ void FullScreenDialog::deleteLater(bool detach)
running = false;
}
else {
Window::deleteLater(detach);
Window::deleteLater(detach, trash);
}
}

View file

@ -59,7 +59,7 @@ class FullScreenDialog : public FormGroup
bool onTouchEnd(coord_t x, coord_t y) override;
#endif
void deleteLater(bool detach=true) override;
void deleteLater(bool detach = true, bool trash = true) override;
void checkEvents() override;

View file

@ -67,13 +67,14 @@ Page::~Page()
#endif
}
void Page::deleteLater(bool detach)
void Page::deleteLater(bool detach, bool trash)
{
#warning "TODO remove previousFocus and use layers"
if (previousFocus) {
previousFocus->setFocus(SET_FOCUS_DEFAULT);
}
Window::deleteLater(detach);
Window::deleteLater(detach, trash);
}
void Page::paint(BitmapBuffer * dc)

View file

@ -78,7 +78,7 @@ class Page: public Window {
}
#endif
void deleteLater(bool detach=true) override;
void deleteLater(bool detach = true, bool trash = true) override;
void paint(BitmapBuffer * dc) override;