Add smoother backup percentage

pull/1585/head
Gordon Williams 2022-03-17 10:43:18 +00:00
parent 13c18e76a6
commit 8209dc9af6
2 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ function bangleDownload() {
promise = promise.then(() => {
Progress.hide({sticky: true});
var percent = n/fileCount;
Progress.show({title:`Download ${filename}`,sticky:true,min:percent,max:percent,percent:0});
Progress.show({title:`Download ${filename}`,sticky:true,min:percent,max:percent+(1/fileCount),percent:0});
return Comms.readFile(filename).then(data => zip.file(filename,data));
});
});
@ -40,7 +40,7 @@ function bangleDownload() {
promise = promise.then(() => {
Progress.hide({sticky: true});
var percent = (normalFiles.length+n)/fileCount;
Progress.show({title:`Download ${filename}`,sticky:true,min:percent,max:percent,percent:0});
Progress.show({title:`Download ${filename}`,sticky:true,min:percent,max:percent+(1/fileCount),percent:0});
return Comms.readStorageFile(filename).then(data => zipStorageFiles.file(filename,data));
});
});

2
core

@ -1 +1 @@
Subproject commit 6e94cf77a2b355389dcd5efa55e2249a9b31983c
Subproject commit 27c7db6035832837ca3909ea52939f60803df72f