1
0
Fork 0

Fixed Promise-based bug in removeApp

master
Gordon Williams 2020-06-05 11:35:16 +01:00
parent 9f41180664
commit 2a494ebef0
2 changed files with 2 additions and 1 deletions

View File

@ -24,3 +24,4 @@ Changed for individual apps are listed in `apps/appname/ChangeLog`
* Fix error in 'Install Default Apps' if Flash storage is full enough that erasing takes a while
* Fixed animated progress bar on app removal
* Added ability to specify dependencies (used for `notify` at the moment)
* Fixed Promise-based bug in removeApp

View File

@ -140,7 +140,7 @@ const Comms = {
return cmd.replace('\u0001', '\\x01')
}).join("");
console.log("<COMMS> removeApp", cmds);
return Comms.reset().then(new Promise((resolve,reject) => {
return Comms.reset().then(() => new Promise((resolve,reject) => {
Puck.write(`\x03\x10E.showMessage('Erasing\\n${app.id}...')${cmds}\x10E.showMessage('Hold BTN3\\nto reload')\n`,(result) => {
Progress.hide({sticky:true});
if (result===null) return reject("");