Default option fixes

pull/404/head
Richard Hopkins 2020-05-11 12:15:59 +01:00
parent 0b8fa574d2
commit 9f52fe4a91
2 changed files with 3 additions and 3 deletions

View File

@ -11,8 +11,8 @@ const proportion = 0.3; // relative size of hour hand
const thickness = 4; // thickness of decorative lines
// retrieve settings from menu
let settings = require('Storage').readJSON('app.json',1)||{};
const decoration = settings.decoration;
const widgets = settings.widgets;
const decoration = !settings.decoration;
const widgets = !settings.widgets;
if (widgets) {
widgetHeight = 24;}
else {

View File

@ -23,7 +23,7 @@
onchange: m => {save('widgets', m)}
},
'Decoration': {
value: 1|settings['decoration'],
value: 0|settings['decoration'],
min:0,max:1,
format: m => onoff[m],
onchange: m => {save('decoration', m)}