Skip to content

Commit 25af19d

Browse files
committed
promenu: pull out setUI() options
1 parent febeda3 commit 25af19d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

apps/promenu/bootb2.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ E.showMenu = ((items?: Menu): MenuInstance | void => {
264264
cb(void 0, xy);
265265
}) satisfies TouchCallback;
266266

267-
Bangle.setUI({
267+
const uiopts = {
268268
mode: "updown",
269269
back: back as () => void,
270270
remove: () => {
@@ -273,7 +273,9 @@ E.showMenu = ((items?: Menu): MenuInstance | void => {
273273
options.remove?.();
274274
},
275275
touch: touchcb,
276-
} as SetUIArg<"updown">, cb);
276+
} as SetUIArg<"updown">;
277+
278+
Bangle.setUI(uiopts, cb);
277279

278280
return l;
279281
}) as typeof E.showMenu;

0 commit comments

Comments
 (0)