example 'meshtastic': fix 'unread messages'; let user choose region after app install

This commit is contained in:
pls.153 2024-03-04 19:03:17 +01:00
parent b7e23aec5a
commit bf912d817a
10 changed files with 63 additions and 35 deletions

View file

@ -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