1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-11-26 20:20:36 +02:00

The input manager should check whether a powersaver instance is running, to not create one when it's not needed.

This commit is contained in:
Ayla 2011-08-17 00:46:43 +02:00
parent fca8c8e8a1
commit 8c1f4abb5b

View File

@ -180,8 +180,8 @@ bool InputManager::getEvent(bevent_t *bevent, bool wait) {
break; break;
} }
} }
if ( wait ) { if ( wait && PowerSaver::isRunning())
PowerSaver::getInstance()->resetScreenTimer(); PowerSaver::getInstance()->resetScreenTimer();
}
return true; return true;
} }