chess: Disable button when alert is shown

pull/2867/head
Erik Andresen 2023-07-06 21:17:09 +02:00
parent b8ddb0cc58
commit bcde01f7a5
1 changed files with 3 additions and 0 deletions

View File

@ -259,6 +259,9 @@ Bangle.on('touch', (button, xy) => {
// show menu on button
setWatch(() => {
if (showmenu) {
return;
}
showmenu = true;
piece_sel = 0;
startfield[0] = startfield[1] = undefined;