Merge pull request #1469 from gagarinlg/dialogbl
force backlight on when displaying full screen dialogs
This commit is contained in:
@@ -158,7 +158,13 @@ void FullScreenDialog::runForever()
|
||||
{
|
||||
running = true;
|
||||
|
||||
MainWindow* mainWin = MainWindow::instance();
|
||||
#if defined(HARDWARE_TOUCH)
|
||||
mainWin->setTouchEnabled(true);
|
||||
#endif
|
||||
while (running) {
|
||||
resetBacklightTimeout();
|
||||
|
||||
auto check = pwrCheck();
|
||||
if (check == e_power_off) {
|
||||
boardOff();
|
||||
@@ -176,7 +182,7 @@ void FullScreenDialog::runForever()
|
||||
WDG_RESET();
|
||||
|
||||
RTOS_WAIT_MS(1);
|
||||
MainWindow::instance()->run(false);
|
||||
mainWin->run(false);
|
||||
}
|
||||
|
||||
deleteLater();
|
||||
@@ -186,12 +192,18 @@ void FullScreenDialog::runForeverNoPwrCheck()
|
||||
{
|
||||
running = true;
|
||||
|
||||
MainWindow* mainWin = MainWindow::instance();
|
||||
#if defined(HARDWARE_TOUCH)
|
||||
mainWin->setTouchEnabled(true);
|
||||
#endif
|
||||
while (running) {
|
||||
resetBacklightTimeout();
|
||||
|
||||
checkBacklight();
|
||||
WDG_RESET();
|
||||
|
||||
RTOS_WAIT_MS(1);
|
||||
MainWindow::instance()->run(false);
|
||||
mainWin->run(false);
|
||||
}
|
||||
|
||||
deleteLater();
|
||||
|
||||
@@ -560,4 +560,5 @@ void RadioSetupPage::updateBacklightControls()
|
||||
backlightOffBright->enable(false);
|
||||
break;
|
||||
}
|
||||
resetBacklightTimeout();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user