mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
close screen framebuffer when exiting reader
This commit is contained in:
@@ -239,6 +239,11 @@ function Screen:restoreFromBB(bb)
|
||||
end
|
||||
end
|
||||
|
||||
function Screen:close()
|
||||
DEBUG("close screen framebuffer")
|
||||
self.fb:close()
|
||||
end
|
||||
|
||||
function Screen:getDPIMenuTable()
|
||||
local function dpi() return G_reader_settings:readSetting("screen_dpi") end
|
||||
local function custom() return G_reader_settings:readSetting("custom_screen_dpi") end
|
||||
|
||||
@@ -358,7 +358,7 @@ function UIManager:run()
|
||||
|
||||
-- stop when we have no window to show
|
||||
if #self._window_stack == 0 then
|
||||
DEBUG("no dialog left to show, would loop endlessly")
|
||||
DEBUG("no dialog left to show")
|
||||
self:quit()
|
||||
return nil
|
||||
end
|
||||
|
||||
@@ -38,8 +38,6 @@ function exitReader()
|
||||
|
||||
G_reader_settings:close()
|
||||
|
||||
input.closeAll()
|
||||
|
||||
-- Close lipc handles
|
||||
KindlePowerD:coda()
|
||||
ReaderActivityIndicator:coda()
|
||||
@@ -64,6 +62,9 @@ function exitReader()
|
||||
end
|
||||
end
|
||||
|
||||
input.closeAll()
|
||||
Screen:close()
|
||||
|
||||
if Profiler then Profiler.stop() end
|
||||
os.exit(0)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user