Skip to content

Commit

Permalink
DeviceListener: Restore onExit callback passing
Browse files Browse the repository at this point in the history
That callback is used for custom exit paths (e.g., OTA).

Regression in koreader#12509
  • Loading branch information
NiLuJe committed Oct 26, 2024
1 parent 4c91bf9 commit b42b9a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/device/devicelistener.lua
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,8 @@ function DeviceListener:onRequestUSBMS()
MassStorage:start(false)
end

function DeviceListener:onExit()
self.ui.menu:exitOrRestart()
function DeviceListener:onExit(callback)
self.ui.menu:exitOrRestart(callback)
end

function DeviceListener:onRestart()
Expand Down

0 comments on commit b42b9a8

Please sign in to comment.