From ef74a18566a1f7c2859422dce3e694a293398a0b Mon Sep 17 00:00:00 2001 From: thyttan <6uuxstm66@mozmail.com⁩> Date: Thu, 1 Dec 2022 00:45:48 +0100 Subject: [PATCH] load widgets and hide them --- apps/torch/ChangeLog | 3 +-- apps/torch/app.js | 8 ++------ 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/apps/torch/ChangeLog b/apps/torch/ChangeLog index a3665a562..35d3f5927 100644 --- a/apps/torch/ChangeLog +++ b/apps/torch/ChangeLog @@ -8,5 +8,4 @@ 0.08: Force background of widget field to the torch colour 0.09: Change code taking FW tweaks into account 0.10: Introduce fast switching. -0.11: Make compatible with Fastload Utils by loading widgets. No change if -Fastload Utils is not installed. +0.11: Make compatible with Fastload Utils by loading and hiding widgets. diff --git a/apps/torch/app.js b/apps/torch/app.js index 1c96d50f3..b44cfb929 100644 --- a/apps/torch/app.js +++ b/apps/torch/app.js @@ -20,11 +20,8 @@ g.setTheme({bg:settings.bg,fg:"#000"}); g.setColor(settings.bg); g.fillRect(0,0,g.getWidth(),g.getHeight()); - if (s.read('fastload.cache')!==undefined) { - Bangle.loadWidgets(); - if (process.env.HWVERSION==1) wu.hide(); - if (process.env.HWVERSION==2) wu.swipeOn(); - } + Bangle.loadWidgets(); + wu.hide(); Bangle.setUI({ mode : 'custom', back : Bangle.showClock, // B2: SW back button to exit @@ -37,4 +34,3 @@ } }); } -