settings: return the new menu from popMenu

(for theme)
master
Rob Pilling 2024-11-12 17:49:56 +00:00
parent 83e647ac9b
commit 516e17d0d8
1 changed files with 3 additions and 1 deletions

View File

@ -34,7 +34,9 @@ function restoreMenu(menu) {
function popMenu(menu) { function popMenu(menu) {
if(!menu[""]) menu[""] = {}; if(!menu[""]) menu[""] = {};
menu[""].scroll = scrolls.pop() | 0; menu[""].scroll = scrolls.pop() | 0;
menuScroller = E.showMenu(menu).scroller; const m = E.showMenu(menu);
menuScroller = m.scroller;
return m;
} }
function updateOptions() { function updateOptions() {