From 45dc986d6332b7018b19f3eb4e4017930a913a9c Mon Sep 17 00:00:00 2001 From: RKBoss6 Date: Thu, 19 Jun 2025 20:47:15 -0400 Subject: [PATCH] Update settings.js --- apps/chargeanim/settings.js | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/apps/chargeanim/settings.js b/apps/chargeanim/settings.js index 7380fc0c0..39fc2333b 100644 --- a/apps/chargeanim/settings.js +++ b/apps/chargeanim/settings.js @@ -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 - }, + } + }); })