From c5d6b248159dbb56e8efaafb21378c0b00568d5e Mon Sep 17 00:00:00 2001 From: BartS23 <10829389+BartS23@users.noreply.github.com> Date: Mon, 9 Jan 2023 14:34:08 +0100 Subject: [PATCH] use setItem of clock_info --- apps/bwclk/ChangeLog | 3 ++- apps/bwclk/app.js | 4 +--- apps/bwclk/metadata.json | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/apps/bwclk/ChangeLog b/apps/bwclk/ChangeLog index 6a71769f3..33cd7ef63 100644 --- a/apps/bwclk/ChangeLog +++ b/apps/bwclk/ChangeLog @@ -27,4 +27,5 @@ 0.26: Use clkinfo.addInteractive instead of a custom implementation 0.27: Clean out some leftovers in the remove function after switching to clkinfo.addInteractive that would cause ReferenceError. -0.28: Option to show (1) time only and (2) week of year. \ No newline at end of file +0.28: Option to show (1) time only and (2) week of year. +0.29: use setItem of clockInfoMenu to change the active item \ No newline at end of file diff --git a/apps/bwclk/app.js b/apps/bwclk/app.js index 67ed86552..c2518361b 100644 --- a/apps/bwclk/app.js +++ b/apps/bwclk/app.js @@ -327,9 +327,7 @@ Bangle.on('lock', lockListenerBw); let charging = function(charging){ // Jump to battery - clockInfoMenu.menuA = 0; - clockInfoMenu.menuB = 2; - clockInfoMenu.redraw(); + clockInfoMenu.setItem(0, 2); drawTime(); } Bangle.on('charging', charging); diff --git a/apps/bwclk/metadata.json b/apps/bwclk/metadata.json index 7c5d285e3..a29102bdf 100644 --- a/apps/bwclk/metadata.json +++ b/apps/bwclk/metadata.json @@ -1,7 +1,7 @@ { "id": "bwclk", "name": "BW Clock", - "version": "0.28", + "version": "0.29", "description": "A very minimalistic clock.", "readme": "README.md", "icon": "app.png",