force touch screen to be on in full screen dialogs
reset backlight timeout when changing backlight settings
This commit is contained in:
@@ -158,6 +158,10 @@ void FullScreenDialog::runForever()
|
|||||||
{
|
{
|
||||||
running = true;
|
running = true;
|
||||||
|
|
||||||
|
MainWindow* mainWin = MainWindow::instance();
|
||||||
|
#if defined(HARDWARE_TOUCH)
|
||||||
|
mainWin->setTouchEnabled(true);
|
||||||
|
#endif
|
||||||
while (running) {
|
while (running) {
|
||||||
resetBacklightTimeout();
|
resetBacklightTimeout();
|
||||||
|
|
||||||
@@ -178,7 +182,7 @@ void FullScreenDialog::runForever()
|
|||||||
WDG_RESET();
|
WDG_RESET();
|
||||||
|
|
||||||
RTOS_WAIT_MS(1);
|
RTOS_WAIT_MS(1);
|
||||||
MainWindow::instance()->run(false);
|
mainWin->run(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
deleteLater();
|
deleteLater();
|
||||||
@@ -188,6 +192,10 @@ void FullScreenDialog::runForeverNoPwrCheck()
|
|||||||
{
|
{
|
||||||
running = true;
|
running = true;
|
||||||
|
|
||||||
|
MainWindow* mainWin = MainWindow::instance();
|
||||||
|
#if defined(HARDWARE_TOUCH)
|
||||||
|
mainWin->setTouchEnabled(true);
|
||||||
|
#endif
|
||||||
while (running) {
|
while (running) {
|
||||||
resetBacklightTimeout();
|
resetBacklightTimeout();
|
||||||
|
|
||||||
@@ -195,7 +203,7 @@ void FullScreenDialog::runForeverNoPwrCheck()
|
|||||||
WDG_RESET();
|
WDG_RESET();
|
||||||
|
|
||||||
RTOS_WAIT_MS(1);
|
RTOS_WAIT_MS(1);
|
||||||
MainWindow::instance()->run(false);
|
mainWin->run(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
deleteLater();
|
deleteLater();
|
||||||
|
|||||||
@@ -560,4 +560,5 @@ void RadioSetupPage::updateBacklightControls()
|
|||||||
backlightOffBright->enable(false);
|
backlightOffBright->enable(false);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
resetBacklightTimeout();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user