Merge pull request #3495 from Poolitzer/master

Daisy Fix: Put default to False for battery display
master
thyttan 2024-07-07 21:34:11 +02:00 committed by GitHub
commit 0ffd850897
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 3 deletions

View File

@ -10,3 +10,4 @@
0.10: Use widget_utils.
0.11: Minor code improvements
0.12: Added setting to change Battery estimate to hours
0.13: Fixed Battery estimate Default to percentage and improved setting string

View File

@ -83,7 +83,7 @@ function loadSettings() {
settings.gy = settings.gy||'#020';
settings.fg = settings.fg||'#0f0';
settings.idle_check = (settings.idle_check === undefined ? true : settings.idle_check);
settings.batt_hours = (settings.batt_hours === undefined ? true : settings.batt_hours);
settings.batt_hours = (settings.batt_hours === undefined ? false : settings.batt_hours);
assignPalettes();
}

View File

@ -1,6 +1,6 @@
{ "id": "daisy",
"name": "Daisy",
"version": "0.12",
"version": "0.13",
"dependencies": {"mylocation":"app"},
"description": "A beautiful digital clock with large ring guage, idle timer and a cyclic information line that includes, day, date, steps, battery, sunrise and sunset times",
"icon": "app.png",

View File

@ -47,7 +47,7 @@
save();
},
},
'Expected Battery Life In Hours': {
'Expected Battery Life In Days Not Percentage': {
value: !!s.batt_hours,
onchange: v => {
s.batt_hours = v;