score: fix settings-back for Bangle2

master
Rob Pilling 2025-04-28 18:10:21 +01:00
parent 5b6c11306e
commit 83143207e8
2 changed files with 9 additions and 10 deletions

View File

@ -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':

View File

@ -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());
})); }, })); },