mirror of https://github.com/espruino/BangleApps
Clean up settings logic
parent
d6d1e5c139
commit
960d7c7563
|
@ -20,13 +20,13 @@ var mainmenu = {
|
|||
'' : {'title' : 'GPS widget'},
|
||||
'< Back' : back,
|
||||
"Cross icon" : {
|
||||
value : !!settings.crossIcon ,
|
||||
value : settings.crossIcon ,
|
||||
onchange : v => { writeSettings("crossIcon", v); }
|
||||
},
|
||||
"Hide icon when GPS off" : {
|
||||
value : !!settings.hideWhenGpsOff ,
|
||||
value : settings.hideWhenGpsOff ,
|
||||
onchange : v => { writeSettings("hideWhenGpsOff", v); }
|
||||
},
|
||||
};
|
||||
E.showMenu(mainmenu);
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue