From 87904b31adc8d947ff4ceae370ea2eb80b54b650 Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Thu, 9 Apr 2020 09:03:42 +0100 Subject: [PATCH] files 0.02: Fix deletion of apps - now use files list in app.info (fix #262) --- apps.json | 4 ++-- apps/files/files.js | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/apps.json b/apps.json index fe2dded8e..eddd15cdd 100644 --- a/apps.json +++ b/apps.json @@ -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} diff --git a/apps/files/files.js b/apps/files/files.js index 31353cf96..4775d35d0 100644 --- a/apps/files/files.js +++ b/apps/files/files.js @@ -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) {