mirror of
https://gitlab.com/eql/lqml.git
synced 2025-12-06 02:30:38 -08:00
example 'meshtastic': fix for background mode
This commit is contained in:
parent
003fa9f594
commit
b45af08c87
1 changed files with 7 additions and 2 deletions
|
|
@ -110,8 +110,13 @@ QT::QT() : QObject() {
|
|||
ble->setBackgroundMode(true);
|
||||
ecl_fun("app:background-mode-changed", true);
|
||||
} else if (state == Qt::ApplicationActive) {
|
||||
ble->setBackgroundMode(false);
|
||||
ecl_fun("app:background-mode-changed", false);
|
||||
static bool startup = true;
|
||||
if (startup) {
|
||||
startup = false;
|
||||
} else {
|
||||
ble->setBackgroundMode(false);
|
||||
ecl_fun("app:background-mode-changed", false);
|
||||
}
|
||||
}
|
||||
});
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue