From eaa2918bc86be5100dd30f0249d796516592ad13 Mon Sep 17 00:00:00 2001 From: thyttan <6uuxstm66@mozmail.comā©> Date: Wed, 3 Jul 2024 22:20:21 +0200 Subject: [PATCH] setuichange: don't claer BTN watches after trying it seemed like it was not necessary. --- apps/setuichange/boot.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/apps/setuichange/boot.js b/apps/setuichange/boot.js index 446936bd41..dd541e72b2 100644 --- a/apps/setuichange/boot.js +++ b/apps/setuichange/boot.js @@ -103,11 +103,6 @@ Bangle.setUI = (function(mode, cb) { Bangle.swipeHandler = options.swipe; Bangle.on("swipe", Bangle.swipeHandler); } - if (options.btn || options.btnRelease) { - // Make sure we only add the custom btn handlers. TODO: Deliberate on whether this is the right approach or not. - Bangle.btnWatches.forEach(clearWatch); - Bangle.btnWatches = []; - } if (options.btn) Bangle.btnWatches.push(setWatch(options.btn.bind(options), BTN1, {repeat:1,edge:"rising"})) if (options.btnRelease) Bangle.btnWatches.push(setWatch(options.btnRelease.bind(options), BTN1, {repeat:1,edge:"falling"})) if (options.remove) // handler for removing the UI (intervals/etc)