mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Swipe for menu and quickstart guide (#2761)
* Swipe for menu and quickstart guide Because swiping for the menu is a big change from what we're used to, this commit includes a new quickstart guide. Fixes #2608. * add some dev docs * add FileConverter spec * add QuickStart spec * add Version module * add Version spec
This commit is contained in:
11
reader.lua
11
reader.lua
@@ -89,11 +89,12 @@ while argidx <= #ARGV do
|
||||
end
|
||||
end
|
||||
|
||||
local lfs = require("libs/libkoreader-lfs")
|
||||
local UIManager = require("ui/uimanager")
|
||||
local ConfirmBox = require("ui/widget/confirmbox")
|
||||
local Device = require("device")
|
||||
local Font = require("ui/font")
|
||||
local ConfirmBox = require("ui/widget/confirmbox")
|
||||
local QuickStart = require("ui/quickstart")
|
||||
local UIManager = require("ui/uimanager")
|
||||
local lfs = require("libs/libkoreader-lfs")
|
||||
|
||||
local function retryLastFile()
|
||||
return ConfirmBox:new{
|
||||
@@ -124,10 +125,12 @@ end
|
||||
local last_file = G_reader_settings:readSetting("lastfile")
|
||||
-- load last opened file
|
||||
local open_last = G_reader_settings:readSetting("open_last")
|
||||
|
||||
if open_last and last_file and lfs.attributes(last_file, "mode") ~= "file" then
|
||||
UIManager:show(retryLastFile())
|
||||
last_file = nil
|
||||
elseif not QuickStart:isShown() then
|
||||
open_last = true
|
||||
last_file = QuickStart:getQuickStart()
|
||||
end
|
||||
-- night mode
|
||||
if G_reader_settings:readSetting("night_mode") then
|
||||
|
||||
Reference in New Issue
Block a user