Skip to content

Commit b13eece

Browse files
committed
gpstrek - Correctly return to menu if selecting no in background menu
1 parent 0e8b3a3 commit b13eece

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/gpstrek/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,8 +601,8 @@ function showBackgroundMenu(){
601601
"title" : "Background",
602602
back : showMenu,
603603
},
604-
"Start" : ()=>{ E.showPrompt("Start?").then((v)=>{ if (v) {WIDGETS.gpstrek.start(true); removeMenu();} else {E.showMenu(mainmenu);}});},
605-
"Stop" : ()=>{ E.showPrompt("Stop?").then((v)=>{ if (v) {WIDGETS.gpstrek.stop(true); removeMenu();} else {E.showMenu(mainmenu);}});},
604+
"Start" : ()=>{ E.showPrompt("Start?").then((v)=>{ if (v) {WIDGETS.gpstrek.start(true); removeMenu();} else {showMenu();}}).catch(()=>{E.showMenu(mainmenu);});},
605+
"Stop" : ()=>{ E.showPrompt("Stop?").then((v)=>{ if (v) {WIDGETS.gpstrek.stop(true); removeMenu();} else {showMenu();}}).catch(()=>{E.showMenu(mainmenu);});},
606606
};
607607
E.showMenu(menu);
608608
}

0 commit comments

Comments
 (0)