mirror of https://github.com/espruino/BangleApps
Merge pull request #4 from t0m1o1/Swipe-Launcher
Stop the swiping coming up if mode is undefinedpull/924/head
commit
dec967f1ac
|
@ -3,7 +3,8 @@
|
|||
var sui = Bangle.setUI;
|
||||
Bangle.setUI = function(mode, cb) {
|
||||
sui(mode,cb);
|
||||
if (mode && !mode.startsWith("clock")) return;
|
||||
if(!mode) return;
|
||||
if (!mode.startsWith("clock")) return;
|
||||
Bangle.swipeHandler = dir => { if (dir<0) Bangle.showLauncher(); };
|
||||
Bangle.on("swipe", Bangle.swipeHandler);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue