aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Tkachev2016-07-04 13:40:32 +0600
committerAlexander Tkachev2016-08-24 16:07:55 +0600
commita37c63998671ad8a341e1b88aead758f408e5fc2 (patch)
treecdda8593baa35f28af875bfc3632366ceceb5750
parent6faf2c26173e0a1305e4cea07a04c2857586bf6f (diff)
downloadscummvm-rg350-a37c63998671ad8a341e1b88aead758f408e5fc2.tar.gz
scummvm-rg350-a37c63998671ad8a341e1b88aead758f408e5fc2.tar.bz2
scummvm-rg350-a37c63998671ad8a341e1b88aead758f408e5fc2.zip
CLOUD: Make Google Drive sort files list
GoogleDriveListDirectoryByIdRequest now uses "orderBy" field to specify that we want the commonly used "alphabetical, folders first" order. That's mostly needed for RemoteBrowserDialog, because Requests don't care about the order, and this one is more user-friendly.
-rw-r--r--backends/cloud/googledrive/googledrivelistdirectorybyidrequest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/cloud/googledrive/googledrivelistdirectorybyidrequest.cpp b/backends/cloud/googledrive/googledrivelistdirectorybyidrequest.cpp
index 582f67c2cf..36bc390da0 100644
--- a/backends/cloud/googledrive/googledrivelistdirectorybyidrequest.cpp
+++ b/backends/cloud/googledrive/googledrivelistdirectorybyidrequest.cpp
@@ -55,7 +55,7 @@ void GoogleDriveListDirectoryByIdRequest::start() {
}
void GoogleDriveListDirectoryByIdRequest::makeRequest(Common::String pageToken) {
- Common::String url = "https://www.googleapis.com/drive/v3/files?spaces=drive&fields=files%28id,mimeType,modifiedTime,name,size%29,nextPageToken";
+ Common::String url = "https://www.googleapis.com/drive/v3/files?spaces=drive&fields=files%28id,mimeType,modifiedTime,name,size%29,nextPageToken&orderBy=folder,name";
//files(id,mimeType,modifiedTime,name,size),nextPageToken
if (pageToken != "") url += "&pageToken=" + pageToken;
url += "&q=%27" + _requestedId + "%27+in+parents";