Add smoother backup percentage
parent
13c18e76a6
commit
8209dc9af6
|
|
@ -29,7 +29,7 @@ function bangleDownload() {
|
||||||
promise = promise.then(() => {
|
promise = promise.then(() => {
|
||||||
Progress.hide({sticky: true});
|
Progress.hide({sticky: true});
|
||||||
var percent = n/fileCount;
|
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));
|
return Comms.readFile(filename).then(data => zip.file(filename,data));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
@ -40,7 +40,7 @@ function bangleDownload() {
|
||||||
promise = promise.then(() => {
|
promise = promise.then(() => {
|
||||||
Progress.hide({sticky: true});
|
Progress.hide({sticky: true});
|
||||||
var percent = (normalFiles.length+n)/fileCount;
|
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));
|
return Comms.readStorageFile(filename).then(data => zipStorageFiles.file(filename,data));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
2
core
2
core
|
|
@ -1 +1 @@
|
||||||
Subproject commit 6e94cf77a2b355389dcd5efa55e2249a9b31983c
|
Subproject commit 27c7db6035832837ca3909ea52939f60803df72f
|
||||||
Loading…
Reference in New Issue