From 929c6171d6dd1882a3c1c3aff2edfac62f3c2b51 Mon Sep 17 00:00:00 2001 From: Richard de Boer Date: Wed, 27 Jul 2022 20:36:44 +0200 Subject: [PATCH] weather: don't mark app as CLOCK. This matters for widgets that hide themselves for clocks --- apps/weather/ChangeLog | 1 + apps/weather/app.js | 6 +++++- apps/weather/metadata.json | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/apps/weather/ChangeLog b/apps/weather/ChangeLog index 101da48e1..49e23e1d6 100644 --- a/apps/weather/ChangeLog +++ b/apps/weather/ChangeLog @@ -12,3 +12,4 @@ 0.13: Tweak Bangle.js 2 light theme colors 0.14: Use weather condition code for icon selection 0.15: Fix widget icon +0.16: Don't mark app as clock diff --git a/apps/weather/app.js b/apps/weather/app.js index efd9b0209..f63b226b9 100644 --- a/apps/weather/app.js +++ b/apps/weather/app.js @@ -101,7 +101,11 @@ weather.on("update", update); update(); -// Show launcher when middle button pressed +// We want this app to behave like a clock: +// i.e. show launcher when middle button pressed Bangle.setUI("clock"); +// But the app is not actually a clock +// This matters for widgets that hide themselves for clocks, like widclk or widclose +delete Bangle.CLOCK; Bangle.drawWidgets(); diff --git a/apps/weather/metadata.json b/apps/weather/metadata.json index 1d0b6b469..25037de3d 100644 --- a/apps/weather/metadata.json +++ b/apps/weather/metadata.json @@ -1,7 +1,7 @@ { "id": "weather", "name": "Weather", - "version": "0.15", + "version": "0.16", "description": "Show Gadgetbridge weather report", "icon": "icon.png", "screenshots": [{"url":"screenshot.png"}],