Ensure that we hide widgets if in fullscreen mode

(So that widgets are still hidden if launcher is fast-loaded)
pull/2406/head
Gordon Williams 2022-12-15 11:41:27 +00:00
parent 1c7eb92ad5
commit 964ee01617
3 changed files with 9 additions and 2 deletions

View File

@ -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)

View File

@ -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();
}
}
};

View File

@ -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",