mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-26 17:43:10 +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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( wait ) {
|
if ( wait && PowerSaver::isRunning())
|
||||||
PowerSaver::getInstance()->resetScreenTimer();
|
PowerSaver::getInstance()->resetScreenTimer();
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user