GUI: Add SaveLoadCloudSyncProgressDialog

It's shown by SaveLoadChooserDialog when files are downloaded and some
save slots are locked. One can hide that dialog to interact with
non-locked slots or cancel saves sync completely. Dialog's label shows
current sync progress.

Dialog automatically hides itself when all files are downloaded.
WARNING: right now that results in a crash!
This commit is contained in:
Alexander Tkachev 2016-06-05 20:20:22 +06:00
parent e7763700e2
commit e9721976aa
7 changed files with 154 additions and 3 deletions

View file

@ -151,4 +151,14 @@ Common::Array<Common::String> CloudManager::getSyncingFiles() {
return Common::Array<Common::String>();
}
void CloudManager::cancelSync() {
Storage *storage = getCurrentStorage();
if (storage) storage->cancelSync();
}
void CloudManager::setSyncTarget(GUI::CommandReceiver *target) {
Storage *storage = getCurrentStorage();
if (storage) storage->setSyncTarget(target);
}
} // End of namespace Common