Merge pull request #3730 from voloved/counter2

Fix with counter2's default values in settings
master
thyttan 2025-02-02 16:16:38 +01:00 committed by GitHub
commit 99e8485534
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 3 deletions

View File

@ -2,3 +2,4 @@
0.02: Added Settings & readme
0.03: 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",
"name": "Counter2",
"version": "0.04",
"version": "0.05",
"description": "Dual Counter",
"readme":"README.md",
"icon": "counter2-icon.png",

View File

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