From 964ee01617fb2773a27e78047cace0291bc5b8ec Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Thu, 15 Dec 2022 11:41:27 +0000 Subject: [PATCH] Ensure that we hide widgets if in fullscreen mode (So that widgets are still hidden if launcher is fast-loaded) --- apps/iconlaunch/ChangeLog | 4 +++- apps/iconlaunch/app.js | 5 +++++ apps/iconlaunch/metadata.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/apps/iconlaunch/ChangeLog b/apps/iconlaunch/ChangeLog index b03599ae6..0c33a4871 100644 --- a/apps/iconlaunch/ChangeLog +++ b/apps/iconlaunch/ChangeLog @@ -17,4 +17,6 @@ 0.12: Use Bangle.load and Bangle.showClock 0.13: Fix automatic switch to clock 0.14: Revert use of Bangle.load to classic load calls since widgets would -still be loaded when they weren't supposed to. + still be loaded when they weren't supposed to. +0.15: Ensure that we hide widgets if in fullscreen mode + (So that widgets are still hidden if launcher is fast-loaded) diff --git a/apps/iconlaunch/app.js b/apps/iconlaunch/app.js index ccc39f3bb..acf695ddb 100644 --- a/apps/iconlaunch/app.js +++ b/apps/iconlaunch/app.js @@ -12,6 +12,8 @@ if (!settings.fullscreen) { Bangle.loadWidgets(); Bangle.drawWidgets(); + } else { // for fast-load, if we had widgets then we should hide them + require("widget_utils").hide(); } let launchCache = s.readJSON("iconlaunch.cache.json", true)||{}; let launchHash = s.hash(/\.info/); @@ -190,6 +192,9 @@ btn: _=> { if (settings.oneClickExit) Bangle.showClock(); }, remove: function() { if (timeout) clearTimeout(timeout); + if (settings.fullscreen) { // for fast-load, if we hid widgets then we should show them again + require("widget_utils").show(); + } } }; diff --git a/apps/iconlaunch/metadata.json b/apps/iconlaunch/metadata.json index 155e7bd9b..27f6386d3 100644 --- a/apps/iconlaunch/metadata.json +++ b/apps/iconlaunch/metadata.json @@ -2,7 +2,7 @@ "id": "iconlaunch", "name": "Icon Launcher", "shortName" : "Icon launcher", - "version": "0.14", + "version": "0.15", "icon": "app.png", "description": "A launcher inspired by smartphones, with an icon-only scrollable menu.", "tags": "tool,system,launcher",