OPDS catalog, Cloud storage: hold return arrow to go to top (#7845)

This commit is contained in:
hius07
2021-06-29 11:22:03 +03:00
committed by GitHub
parent dde732c17f
commit db60ba48b7
3 changed files with 30 additions and 1 deletions

View File

@@ -712,4 +712,17 @@ function CloudStorage:onReturn()
return true
end
function CloudStorage:onHoldReturn()
if #self.paths > 1 then
local path = self.paths[1]
if path then
for i = #self.paths, 2, -1 do
table.remove(self.paths)
end
self:openCloudServer(path.url)
end
end
return true
end
return CloudStorage