mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-22 22: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:
parent
fca8c8e8a1
commit
8c1f4abb5b
@ -180,8 +180,8 @@ bool InputManager::getEvent(bevent_t *bevent, bool wait) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if ( wait ) {
|
||||
if ( wait && PowerSaver::isRunning())
|
||||
PowerSaver::getInstance()->resetScreenTimer();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user