mirror of https://github.com/espruino/BangleApps
Ensure that we hide widgets if in fullscreen mode
(So that widgets are still hidden if launcher is fast-loaded)pull/2406/head
parent
1c7eb92ad5
commit
964ee01617
|
@ -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)
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue