1
0
Fork 0

Widbatpc: - revert hide change

master
hughbarney 2021-10-21 20:41:04 +01:00
parent d1d1cf10ae
commit e0b7a8efef
1 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@
'percentage': true,
'fillbar': false,
'charger': true,
'hideifmorethan': 100
'hideifmorethan': 100,
}
// ...and overwrite them with any saved values
// This way saved values are preserved if a new version adds more settings
@ -31,7 +31,7 @@
}
}
const onOffFormat = b => (b ? 'On' : 'Off')
const onOffFormat = b => (b ? 'on' : 'off')
const menu = {
'': { 'title': 'Battery Widget' },
'< Back': back,
@ -67,7 +67,7 @@
step: 10,
format: x => x+"%",
onchange: save('hideifmorethan'),
}
},
}
E.showMenu(menu)
})