From 25af19d98b207aa04bf88e513f16209b333316ae Mon Sep 17 00:00:00 2001 From: Rob Pilling Date: Wed, 23 Jul 2025 20:07:11 +0100 Subject: [PATCH] promenu: pull out setUI() options --- apps/promenu/bootb2.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/promenu/bootb2.ts b/apps/promenu/bootb2.ts index 9794a4f9e..196db3404 100644 --- a/apps/promenu/bootb2.ts +++ b/apps/promenu/bootb2.ts @@ -264,7 +264,7 @@ E.showMenu = ((items?: Menu): MenuInstance | void => { cb(void 0, xy); }) satisfies TouchCallback; - Bangle.setUI({ + const uiopts = { mode: "updown", back: back as () => void, remove: () => { @@ -273,7 +273,9 @@ E.showMenu = ((items?: Menu): MenuInstance | void => { options.remove?.(); }, touch: touchcb, - } as SetUIArg<"updown">, cb); + } as SetUIArg<"updown">; + + Bangle.setUI(uiopts, cb); return l; }) as typeof E.showMenu;