Update settings.js

master
RKBoss6 2025-06-19 20:47:15 -04:00 committed by GitHub
parent fecb70fde7
commit 45dc986d63
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 12 deletions

View File

@ -6,7 +6,7 @@
// default values
showBatPercent: true,
showTime: true,
keepScreenOn:false,
}, require('Storage').readJSON(FILE, true) || {});
@ -37,17 +37,8 @@
// format: ... may be specified as a function which converts the value to a string
// if the value is a boolean, showMenu() will convert this automatically, which
// keeps settings menus consistent
},
'Keep Backlight On': {
value: !!settings.keepScreenOn, // !! converts undefined to false
onchange: v => {
settings.keepScreenOn = v;
writeSettings();
}
// format: ... may be specified as a function which converts the value to a string
// if the value is a boolean, showMenu() will convert this automatically, which
// keeps settings menus consistent
},
}
});
})