2
0
mirror of https://github.com/koreader/koreader synced 2024-11-10 01:10:34 +00:00

[fix] Avoid crash when set home (#3269)

This commit is contained in:
Robert 2017-09-28 19:33:01 +02:00 committed by Frans de Jonge
parent ac02d1551b
commit af356a819b

View File

@ -132,6 +132,7 @@ function FileManager:init()
local cutFile = function(file) self:cutFile(file) end
local deleteFile = function(file) self:deleteFile(file) end
local renameFile = function(file) self:renameFile(file) end
local setHome = function(path) self:setHome(path) end
local fileManager = self
function file_chooser:onFileHold(file) -- luacheck: ignore
@ -254,7 +255,7 @@ function FileManager:init()
{
text = _("Set as HOME directory"),
callback = function()
self:setHome(realpath)
setHome(realpath)
UIManager:close(self.file_dialog)
end
}