mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Pathchooser: add folder shortcuts
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
local BD = require("ui/bidi")
|
||||
local ButtonDialogTitle = require("ui/widget/buttondialogtitle")
|
||||
local Device = require("device")
|
||||
local Event = require("ui/event")
|
||||
local FileChooser = require("ui/widget/filechooser")
|
||||
local UIManager = require("ui/uimanager")
|
||||
local ffiutil = require("ffi/util")
|
||||
@@ -46,6 +47,9 @@ function PathChooser:init()
|
||||
self.onLeftButtonTap = function()
|
||||
self:goHome()
|
||||
end
|
||||
self.onLeftButtonHold = function()
|
||||
UIManager:broadcastEvent(Event:new("ShowFolderShortcutsDialog", function(path) self:changeToPath(path) end))
|
||||
end
|
||||
FileChooser.init(self)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user