swiperclocklaunch: check `mode` after pulling from `options`
parent
edfb9000e8
commit
c36e3587c5
|
|
@ -3,3 +3,4 @@
|
||||||
0.03: Update setUI to work with new Bangle.js 2v13 menu style
|
0.03: Update setUI to work with new Bangle.js 2v13 menu style
|
||||||
0.04: Update to work with new 'fast switch' clock->launcher functionality
|
0.04: Update to work with new 'fast switch' clock->launcher functionality
|
||||||
0.05: Keep track of event listeners we "overwrite", and remove them at the start of setUI
|
0.05: Keep track of event listeners we "overwrite", and remove them at the start of setUI
|
||||||
|
0.06: Handle apps that call setUI({}) to reset
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,9 @@
|
||||||
sui(mode,cb);
|
sui(mode,cb);
|
||||||
oldSwipe = Bangle.swipeHandler;
|
oldSwipe = Bangle.swipeHandler;
|
||||||
|
|
||||||
if(!mode) return;
|
|
||||||
if ("object"==typeof mode) mode = mode.mode;
|
if ("object"==typeof mode) mode = mode.mode;
|
||||||
|
if (!mode) return;
|
||||||
|
|
||||||
if (mode.startsWith("clock")) {
|
if (mode.startsWith("clock")) {
|
||||||
// clock -> launcher
|
// clock -> launcher
|
||||||
Bangle.swipeHandler = dir => { if (dir<0) Bangle.showLauncher(); };
|
Bangle.swipeHandler = dir => { if (dir<0) Bangle.showLauncher(); };
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"id": "swiperclocklaunch",
|
"id": "swiperclocklaunch",
|
||||||
"name": "Swiper Clock Launch",
|
"name": "Swiper Clock Launch",
|
||||||
"version": "0.05",
|
"version": "0.06",
|
||||||
"description": "Navigate between clock and launcher with Swipe action",
|
"description": "Navigate between clock and launcher with Swipe action",
|
||||||
"icon": "swiperclocklaunch.png",
|
"icon": "swiperclocklaunch.png",
|
||||||
"type": "bootloader",
|
"type": "bootloader",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue