CLOUD: Make ProgressDialog display downloading progress

This commit is contained in:
Alexander Tkachev 2016-06-05 21:07:55 +06:00
parent 3db80154d6
commit 0ce7be17d3
7 changed files with 40 additions and 2 deletions

View file

@ -139,6 +139,12 @@ bool CloudManager::isSyncing() {
return false;
}
double CloudManager::getSyncDownloadingProgress() {
Storage *storage = getCurrentStorage();
if (storage) return storage->getSyncDownloadingProgress();
return 1;
}
double CloudManager::getSyncProgress() {
Storage *storage = getCurrentStorage();
if (storage) return storage->getSyncProgress();