1
0
Fork 0

Added fixed on not reading defaults in counter2 settings

master
David Volovskiy 2025-02-02 09:35:49 -05:00
parent 9e88c40f4a
commit 5323f83146
3 changed files with 4 additions and 3 deletions

View File

@ -2,3 +2,4 @@
0.02: Added Settings & readme 0.02: Added Settings & readme
0.03: Fix lint warnings 0.03: Fix lint warnings
0.04: Fix lint warnings 0.04: Fix lint warnings
0.05: Fix on not reading counter defaults in Settings

View File

@ -1,7 +1,7 @@
{ {
"id": "counter2", "id": "counter2",
"name": "Counter2", "name": "Counter2",
"version": "0.04", "version": "0.05",
"description": "Dual Counter", "description": "Dual Counter",
"readme":"README.md", "readme":"README.md",
"icon": "counter2-icon.png", "icon": "counter2-icon.png",

View File

@ -18,7 +18,7 @@
"": { "title": "Counter2" }, "": { "title": "Counter2" },
"< Back": () => back(), "< Back": () => back(),
'Default C1': { 'Default C1': {
value: settings[0], value: settings.max0,
min: -99, max: 99, min: -99, max: 99,
onchange: v => { onchange: v => {
settings.max0 = v; settings.max0 = v;
@ -26,7 +26,7 @@
} }
}, },
'Default C2': { 'Default C2': {
value: settings[2], value: settings.max1,
min: -99, max: 99, min: -99, max: 99,
onchange: v => { onchange: v => {
settings.max1 = v; settings.max1 = v;