mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-22 13:29:42 +02:00
Explicitly enable screen when PowerSaver exits
In theory the timer could expire between the button press that starts the application launch and the moment the PowerSaver destructor runs. And I think this does in fact happen occasionally thanks to the CPU hogging SD controller driver on the GCW Zero, leading to an application launching with a blanked screen.
This commit is contained in:
parent
c1689e41fb
commit
2c47515321
@ -38,6 +38,7 @@ PowerSaver::PowerSaver()
|
|||||||
PowerSaver::~PowerSaver() {
|
PowerSaver::~PowerSaver() {
|
||||||
removeScreenTimer();
|
removeScreenTimer();
|
||||||
instance = nullptr;
|
instance = nullptr;
|
||||||
|
enableScreen();
|
||||||
}
|
}
|
||||||
|
|
||||||
void PowerSaver::setScreenTimeout(unsigned int seconds) {
|
void PowerSaver::setScreenTimeout(unsigned int seconds) {
|
||||||
|
Loading…
Reference in New Issue
Block a user