From 07d1e8abd46ec85c569e97e88da0c835c05b7191 Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Tue, 15 Mar 2022 15:24:59 +0000 Subject: [PATCH] Ensure backup resets the Bangle first --- backup.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/backup.js b/backup.js index d40121fb2..a0855cdf3 100644 --- a/backup.js +++ b/backup.js @@ -7,7 +7,10 @@ function bangleDownload() { Progress.show({title:"Scanning...",sticky:true}); var normalFiles, storageFiles; console.log("Listing normal files..."); - Comms.listFiles({sf:false}).then(f => { + Comms.reset() + .then(() => Comms.showMessage("Backing up...")) + .then(() => Comms.listFiles({sf:false})) + .then(f => { normalFiles = f; console.log(" - "+f.join(",")); console.log("Listing StorageFiles..."); @@ -38,8 +41,9 @@ function bangleDownload() { }); }); } - console.log("Listing StorageFiles..."); return promise; + }).then(() => { + return Comms.showMessage(Const.MESSAGE_RELOAD); }).then(() => { return zip.generateAsync({type:"blob"}); }).then(content => {