weather: don't mark app as CLOCK.

This matters for widgets that hide themselves for clocks
pull/2066/head
Richard de Boer 2022-07-27 20:36:44 +02:00
parent 489582ee91
commit 929c6171d6
No known key found for this signature in database
3 changed files with 7 additions and 2 deletions

View File

@ -12,3 +12,4 @@
0.13: Tweak Bangle.js 2 light theme colors 0.13: Tweak Bangle.js 2 light theme colors
0.14: Use weather condition code for icon selection 0.14: Use weather condition code for icon selection
0.15: Fix widget icon 0.15: Fix widget icon
0.16: Don't mark app as clock

View File

@ -101,7 +101,11 @@ weather.on("update", 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"); 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(); Bangle.drawWidgets();

View File

@ -1,7 +1,7 @@
{ {
"id": "weather", "id": "weather",
"name": "Weather", "name": "Weather",
"version": "0.15", "version": "0.16",
"description": "Show Gadgetbridge weather report", "description": "Show Gadgetbridge weather report",
"icon": "icon.png", "icon": "icon.png",
"screenshots": [{"url":"screenshot.png"}], "screenshots": [{"url":"screenshot.png"}],