mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[fix] filechooser: disable long-press in select mode (#8567)
This commit is contained in:
@@ -243,7 +243,6 @@ function FileManager:setupLayout()
|
||||
local setHome = function(path) self:setHome(path) end
|
||||
|
||||
function file_chooser:onFileHold(file) -- luacheck: ignore
|
||||
if file_manager.select_mode then return true end
|
||||
local is_file = lfs.attributes(file, "mode") == "file"
|
||||
local is_folder = lfs.attributes(file, "mode") == "directory"
|
||||
local is_not_parent_folder = BaseUtil.basename(file) ~= ".."
|
||||
|
||||
@@ -462,6 +462,7 @@ function FileChooser:onMenuSelect(item)
|
||||
end
|
||||
|
||||
function FileChooser:onMenuHold(item)
|
||||
if self.filemanager and self.filemanager.select_mode then return true end
|
||||
self:onFileHold(item.path)
|
||||
return true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user