2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00

No need to set self.items after deleting a directory as it is

recalculated in self:setPath() anyway.
This commit is contained in:
Tigran Aivazian 2012-09-21 08:26:13 +01:00
parent b2f4d358ae
commit 6cd66a3e79

View File

@ -367,7 +367,6 @@ function FileChooser:addAllCommands()
if self:ReturnKey() == KEY_Y then
if lfs.rmdir(self.path.."/"..folder) then
table.remove(self.dirs, offset)
self.items = self.items - 1
self:setPath(self.path)
else
showInfoMsgWithDelay("Cannot be deleted!",1500,1)