score: fix settings-back for Bangle2
parent
5b6c11306e
commit
83143207e8
|
|
@ -151,14 +151,13 @@ function showSettingsMenu() {
|
||||||
if (reset) {
|
if (reset) {
|
||||||
setupMatch();
|
setupMatch();
|
||||||
}
|
}
|
||||||
if (isBangle1 || back) {
|
|
||||||
settingsMenuOpened = null;
|
|
||||||
|
|
||||||
draw();
|
settingsMenuOpened = null;
|
||||||
|
|
||||||
setupDisplay();
|
draw();
|
||||||
setupInputWatchers();
|
|
||||||
}
|
setupDisplay();
|
||||||
|
setupInputWatchers();
|
||||||
}, function (msg) {
|
}, function (msg) {
|
||||||
switch (msg) {
|
switch (msg) {
|
||||||
case 'end_set':
|
case 'end_set':
|
||||||
|
|
|
||||||
|
|
@ -174,10 +174,10 @@
|
||||||
const inAppMenu = function () {
|
const inAppMenu = function () {
|
||||||
let m = {
|
let m = {
|
||||||
'': {'title': 'Score Menu'},
|
'': {'title': 'Score Menu'},
|
||||||
'< Back': function () { back(settings, changed, false); },
|
'< Back': function () { back(settings, changed); },
|
||||||
'Correct mode': function () { inApp('correct_mode'); back(settings, false, true); },
|
'Correct mode': function () { inApp('correct_mode'); back(settings, false); },
|
||||||
'Reset match': function () { back(settings, true, true); },
|
'Reset match': function () { back(settings, true); },
|
||||||
'End current set': function () { inApp('end_set'); back(settings, changed, true); },
|
'End current set': function () { inApp('end_set'); back(settings, changed); },
|
||||||
'Configuration': function () { E.showMenu(appMenu(function () {
|
'Configuration': function () { E.showMenu(appMenu(function () {
|
||||||
E.showMenu(inAppMenu());
|
E.showMenu(inAppMenu());
|
||||||
})); },
|
})); },
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue