App Manager: Allow negative numbers when manual-sorting

master
fxiii 2021-07-11 21:18:13 +02:00
parent fc0989ca41
commit d62dec7dcb
3 changed files with 4 additions and 3 deletions

View File

@ -533,7 +533,7 @@
{ "id": "files", { "id": "files",
"name": "App Manager", "name": "App Manager",
"icon": "files.png", "icon": "files.png",
"version":"0.06", "version":"0.07",
"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,files", "tags": "tool,system,files",
"storage": [ "storage": [

View File

@ -3,3 +3,4 @@
0.04: Add functionality to sort apps manually or alphabetically ascending/descending. 0.04: Add functionality to sort apps manually or alphabetically ascending/descending.
0.05: Tweaks to help with memory usage 0.05: Tweaks to help with memory usage
0.06: Reduce memory usage 0.06: Reduce memory usage
0.07: Allow negative numbers when manual-sorting

View File

@ -180,7 +180,7 @@ function showSortAppsManually() {
appList.reduce((menu, app) => { appList.reduce((menu, app) => {
menu[app.name] = { menu[app.name] = {
value: app.sortorder || 0, value: app.sortorder || 0,
min: 0, min: -appList.length,
max: appList.length, max: appList.length,
step: 1, step: 1,
onchange: val => setSortorder(app, val) onchange: val => setSortorder(app, val)