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:
parent
e7763700e2
commit
e9721976aa
7 changed files with 154 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue