mirror of https://github.com/espruino/BangleApps
chess: Disable button when alert is shown
parent
b8ddb0cc58
commit
bcde01f7a5
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue