2
0
mirror of https://github.com/koreader/koreader synced 2024-11-04 12:00:25 +00:00

Fix regression (introduced in #9657) (#9759)

This should fix #9741.
This commit is contained in:
zwim 2022-11-07 16:33:12 +01:00 committed by GitHub
parent e3f1642308
commit a1256f6758
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -317,9 +317,17 @@ function DeviceListener:onRestart()
self.ui.menu:exitOrRestart(function() UIManager:restartKOReader() end)
end
DeviceListener.onRequestSuspend = UIManager.suspend
DeviceListener.onRequestReboot = UIManager.reboot
DeviceListener.onRequestPowerOff = UIManager.powerOff
function DeviceListener:onRequestSuspend()
UIManager:suspend()
end
function DeviceListener:onRequestReboot()
UIManager:reboot()
end
function DeviceListener:onRequestPowerOff()
UIManager:powerOff()
end
function DeviceListener:onExit(callback)
self.ui.menu:exitOrRestart(callback)