0.62: Fix whitelist showing as 'on' by default when it's not after 0.59

pull/2926/head
Gordon Williams 2023-07-31 10:49:04 +01:00
parent 7ba94c100d
commit f384aa244c
3 changed files with 3 additions and 2 deletions

View File

@ -68,3 +68,4 @@ of 'Select Clock'
0.60: Moved LCD calibration to top of menu, and use 12 taps (not 8)
LCD calibration will now error if the calibration is obviously wrong
0.61: Permit temporary bypass of the BLE whitelist
0.62: Fix whitelist showing as 'on' by default when it's not after 0.59

View File

@ -1,7 +1,7 @@
{
"id": "setting",
"name": "Settings",
"version": "0.61",
"version": "0.62",
"description": "A menu for setting up Bangle.js",
"icon": "settings.png",
"tags": "tool,system",

View File

@ -193,7 +193,7 @@ function showBLEMenu() {
/*LANG*/'Whitelist': {
value:
(
settings.whitelist_disabled ? /*LANG*/"off" : /*LANG*/"on"
(settings.whitelist_disabled || !settings.whitelist) ? /*LANG*/"off" : /*LANG*/"on"
) + (
settings.whitelist
? " (" + settings.whitelist.length + ")"