forked from FOSS/BangleApps
Fixed Promise-based bug in removeApp
parent
9f41180664
commit
2a494ebef0
|
@ -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
|
* Fix error in 'Install Default Apps' if Flash storage is full enough that erasing takes a while
|
||||||
* Fixed animated progress bar on app removal
|
* Fixed animated progress bar on app removal
|
||||||
* Added ability to specify dependencies (used for `notify` at the moment)
|
* Added ability to specify dependencies (used for `notify` at the moment)
|
||||||
|
* Fixed Promise-based bug in removeApp
|
||||||
|
|
|
@ -140,7 +140,7 @@ const Comms = {
|
||||||
return cmd.replace('\u0001', '\\x01')
|
return cmd.replace('\u0001', '\\x01')
|
||||||
}).join("");
|
}).join("");
|
||||||
console.log("<COMMS> removeApp", cmds);
|
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) => {
|
Puck.write(`\x03\x10E.showMessage('Erasing\\n${app.id}...')${cmds}\x10E.showMessage('Hold BTN3\\nto reload')\n`,(result) => {
|
||||||
Progress.hide({sticky:true});
|
Progress.hide({sticky:true});
|
||||||
if (result===null) return reject("");
|
if (result===null) return reject("");
|
||||||
|
|
Loading…
Reference in New Issue