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",
|
{ "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}
|
||||||
|
|
|
||||||
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue