files 0.02: Fix deletion of apps - now use files list in app.info (fix #262)

master
Gordon Williams 2020-04-09 09:03:42 +01:00
parent c43c335100
commit 87904b31ad
2 changed files with 3 additions and 5 deletions

View File

@ -318,9 +318,9 @@
{ "id": "files", { "id": "files",
"name": "App Manager", "name": "App Manager",
"icon": "files.png", "icon": "files.png",
"version":"0.01", "version":"0.02",
"description": "Show currently installed apps, free space, and allow their deletion from the watch", "description": "Show currently installed apps, free space, and allow their deletion from the watch",
"tags": "tool,system", "tags": "tool,system,files",
"storage": [ "storage": [
{"name":"files.app.js","url":"files.js"}, {"name":"files.app.js","url":"files.js"},
{"name":"files.img","url":"files-icon.js","evaluate":true} {"name":"files.img","url":"files-icon.js","evaluate":true}

View File

@ -32,9 +32,7 @@ function showMainMenu() {
function eraseApp(app) { function eraseApp(app) {
E.showMessage('Erasing\n' + app.name + '...'); E.showMessage('Erasing\n' + app.name + '...');
storage.erase(app['']); app.files.split(",").forEach(f=>storage.erase(f));
storage.erase(app.icon);
storage.erase(app.src);
} }
function showAppMenu(app) { function showAppMenu(app) {