mirror of
https://gitlab.com/eql/lqml.git
synced 2025-12-06 02:30:38 -08:00
example 'meshtastic': fix 'unread messages'; let user choose region after app install
This commit is contained in:
parent
b7e23aec5a
commit
bf912d817a
10 changed files with 63 additions and 35 deletions
|
|
@ -108,9 +108,10 @@ QT::QT() : QObject() {
|
|||
[&](Qt::ApplicationState state) {
|
||||
if (state == Qt::ApplicationInactive) {
|
||||
ble->setBackgroundMode(true);
|
||||
ecl_fun("app:on-background-mode");
|
||||
ecl_fun("app:background-mode-changed", true);
|
||||
} else if (state == Qt::ApplicationActive) {
|
||||
ble->setBackgroundMode(false);
|
||||
ecl_fun("app:background-mode-changed", false);
|
||||
}
|
||||
});
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue