Make Space in FileChooser refresh the file list

The Space command in FileChooser should actually re-read the directory
and not just redraw the current (possibly stale) data. This is
especially useful in two situations:
1. You have extracted some attachments in the current directory
2. You wish to see the current state of the Last Documents list.
Tigran Aivazian 12 years ago
parent 772dda7e57
commit bb94c20bcf

@ -294,9 +294,10 @@ end
function FileChooser:addAllCommands()
self.commands = Commands:new{}
self.commands:add({KEY_SPACE}, nil, "Space",
"refresh page manually",
self.commands:add(KEY_SPACE, nil, "Space",
"refresh file list",
function(self)
self:setPath(self.path)
self.pagedirty = true
end
)

Loading…
Cancel
Save