forked from FOSS/BangleApps
files 0.02: Fix deletion of apps - now use files list in app.info (fix #262)
parent
c43c335100
commit
87904b31ad
|
@ -318,9 +318,9 @@
|
|||
{ "id": "files",
|
||||
"name": "App Manager",
|
||||
"icon": "files.png",
|
||||
"version":"0.01",
|
||||
"version":"0.02",
|
||||
"description": "Show currently installed apps, free space, and allow their deletion from the watch",
|
||||
"tags": "tool,system",
|
||||
"tags": "tool,system,files",
|
||||
"storage": [
|
||||
{"name":"files.app.js","url":"files.js"},
|
||||
{"name":"files.img","url":"files-icon.js","evaluate":true}
|
||||
|
|
|
@ -32,9 +32,7 @@ function showMainMenu() {
|
|||
|
||||
function eraseApp(app) {
|
||||
E.showMessage('Erasing\n' + app.name + '...');
|
||||
storage.erase(app['']);
|
||||
storage.erase(app.icon);
|
||||
storage.erase(app.src);
|
||||
app.files.split(",").forEach(f=>storage.erase(f));
|
||||
}
|
||||
|
||||
function showAppMenu(app) {
|
||||
|
|
Loading…
Reference in New Issue