mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-22 07:29:44 +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() {
|
||||
removeScreenTimer();
|
||||
instance = nullptr;
|
||||
enableScreen();
|
||||
}
|
||||
|
||||
void PowerSaver::setScreenTimeout(unsigned int seconds) {
|
||||
|
Loading…
Reference in New Issue
Block a user