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:
parent
b2f4d358ae
commit
6cd66a3e79
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user