diff --git a/apps/lcars/ChangeLog b/apps/lcars/ChangeLog index 31ce16903..7deef5a4b 100644 --- a/apps/lcars/ChangeLog +++ b/apps/lcars/ChangeLog @@ -23,3 +23,4 @@ 0.23: Add warning for low flash memory. 0.24: Add ability to disable alarm functionality. 0.25: Add more colors to the settings and add the ability to disable the data charts+Markup. +0.26: Use widget_utils. diff --git a/apps/lcars/lcars.app.js b/apps/lcars/lcars.app.js index e796e84a7..4a5539c7a 100644 --- a/apps/lcars/lcars.app.js +++ b/apps/lcars/lcars.app.js @@ -2,6 +2,7 @@ const TIMER_IDX = "lcars"; const SETTINGS_FILE = "lcars.setting.json"; const locale = require('locale'); const storage = require('Storage') +const widget_utils = require('widget_utils'); let settings = { alarm: -1, dataRow1: "Steps", @@ -552,7 +553,7 @@ function draw(){ // After drawing the watch face, we can draw the widgets if(settings.fullscreen){ - for (let wd of WIDGETS) {wd.draw=()=>{};wd.area="";} + widget_utils.hide(); } else { Bangle.drawWidgets(); } diff --git a/apps/lcars/metadata.json b/apps/lcars/metadata.json index 577621df0..787ca9046 100644 --- a/apps/lcars/metadata.json +++ b/apps/lcars/metadata.json @@ -3,7 +3,7 @@ "name": "LCARS Clock", "shortName":"LCARS", "icon": "lcars.png", - "version":"0.25", + "version":"0.26", "readme": "README.md", "supports": ["BANGLEJS2"], "description": "Library Computer Access Retrieval System (LCARS) clock.",