From efe023c5cb348e21d98e0a254092ba8f36c346ce Mon Sep 17 00:00:00 2001 From: Rob Pilling Date: Mon, 8 May 2023 11:07:17 +0100 Subject: [PATCH] drained: use Bangle's bool formatter --- apps/drained/settings.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/apps/drained/settings.ts b/apps/drained/settings.ts index d3ed528f9..23d7ce18d 100644 --- a/apps/drained/settings.ts +++ b/apps/drained/settings.ts @@ -21,8 +21,6 @@ type DrainedSettings = { storage.writeJSON(SETTINGS_FILE, settings) }; - const formatBool = (b: boolean) => b ? "On" : "Off"; - const menu: Menu = { "": { "title": "Drained" }, "< Back": back, @@ -61,7 +59,6 @@ type DrainedSettings = { }, "Keep startup code": { value: settings.keepStartup as boolean, - format: formatBool, onchange: (b: boolean) => { settings.keepStartup = b; save(); @@ -88,7 +85,6 @@ type DrainedSettings = { .forEach((name: string) => { bootExceptions[name] = { value: settings.exceptions!.indexOf(name) >= 0, - format: formatBool, onchange: (b: boolean) => { if (b) { settings.exceptions!.push(name);