[fix] filechooser: disable long-press in select mode (#8567)

This commit is contained in:
hius07
2021-12-21 13:04:20 +02:00
committed by GitHub
parent 03253ef2d1
commit f83eee02dd
2 changed files with 1 additions and 1 deletions

View File

@@ -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) ~= ".."

View 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