mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
New InfoMessage Concept
Part I (still no unireader, crereader, filesearcher & fileinfo) Conflicts: commands.lua dialog.lua filechooser.lua filehistory.lua font.lua inputbox.lua reader.lua resources/info-i.png screen.lua selectmenu.lua
This commit is contained in:
20
reader.lua
20
reader.lua
@@ -139,6 +139,26 @@ end
|
||||
|
||||
|
||||
|
||||
-- @TODO dirty workaround, find a way to force native system poll
|
||||
-- screen orientation and upside down mode 09.03 2012
|
||||
Screen:setRotationMode(Screen.native_rotation_mode)
|
||||
if file then
|
||||
running = openFile(file)
|
||||
else
|
||||
running = false
|
||||
end
|
||||
showReader(ARGV[optind], optarg["p"])
|
||||
end
|
||||
UIManager:run()
|
||||
elseif last_file and lfs.attributes(last_file, "mode") == "file" then
|
||||
showReader(last_file, optarg["p"])
|
||||
UIManager:run()
|
||||
else
|
||||
return showusage()
|
||||
end
|
||||
|
||||
|
||||
|
||||
-- @TODO dirty workaround, find a way to force native system poll
|
||||
-- screen orientation and upside down mode 09.03 2012
|
||||
Screen:setRotationMode(Screen.native_rotation_mode)
|
||||
|
||||
Reference in New Issue
Block a user