promenu: fix back/setUI wiping previous setUI

pull/3416/head
Rob Pilling 2023-01-20 21:42:54 +00:00
parent c0f4a195db
commit 6c4bd363da
1 changed files with 3 additions and 5 deletions

View File

@ -154,11 +154,9 @@ E.showMenu = function(items) {
else l.select();
});
if (options.back) {
Bangle.setUI("leftright", dir => {
if (dir < 0) {
back();
}
});
Bangle.on('swipe', (lr, _ud) => {
if (lr < 0) back();
})
}
return l;
};