feat: Reset inactivity alarm timer for touch events (#1774)

This commit is contained in:
Michael
2022-03-31 11:46:32 +10:00
committed by GitHub
parent b9077c7e5a
commit 06585a0736
+5 -2
View File
@@ -537,8 +537,11 @@ void checkBacklight()
}
#if defined(HARDWARE_TOUCH)
if (MainWindow::instance()->touchEventOccured() && (g_eeGeneral.backlightMode & e_backlight_mode_keys)) {
resetBacklightTimeout();
if (MainWindow::instance()->touchEventOccured()) {
inactivity.counter = 0;
if (g_eeGeneral.backlightMode & e_backlight_mode_keys) {
resetBacklightTimeout();
}
}
#endif