diff options
author | Bastien Bouclet | 2019-11-05 12:42:04 +0100 |
---|---|---|
committer | Bastien Bouclet | 2019-11-10 11:06:08 +0100 |
commit | c847476a932ed6798444e275232b38a3b6048286 (patch) | |
tree | 18ea29264a88f35882a475e4fac02198e29a1c1f /backends/cloud | |
parent | 5c078d80c9d7416588fa27c9b06adb890b1c8bbc (diff) | |
download | scummvm-rg350-c847476a932ed6798444e275232b38a3b6048286.tar.gz scummvm-rg350-c847476a932ed6798444e275232b38a3b6048286.tar.bz2 scummvm-rg350-c847476a932ed6798444e275232b38a3b6048286.zip |
CLOUD: Only download saves when necessary
Prevents the save/load dialog from refreshing and loosing the selection
when there is no file to download.
Diffstat (limited to 'backends/cloud')
-rw-r--r-- | backends/cloud/savessyncrequest.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/backends/cloud/savessyncrequest.cpp b/backends/cloud/savessyncrequest.cpp index 6e0efc55c1..439642b45c 100644 --- a/backends/cloud/savessyncrequest.cpp +++ b/backends/cloud/savessyncrequest.cpp @@ -159,7 +159,11 @@ void SavesSyncRequest::directoryListedCallback(Storage::ListDirectoryResponse re _totalFilesToHandle = _filesToDownload.size() + _filesToUpload.size(); //start downloading files - downloadNextFile(); + if (!_filesToDownload.empty()) { + downloadNextFile(); + } else { + uploadNextFile(); + } } void SavesSyncRequest::directoryListedErrorCallback(Networking::ErrorResponse error) { |