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
|
// show menu on button
|
||||||
setWatch(() => {
|
setWatch(() => {
|
||||||
|
if (showmenu) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
showmenu = true;
|
showmenu = true;
|
||||||
piece_sel = 0;
|
piece_sel = 0;
|
||||||
startfield[0] = startfield[1] = undefined;
|
startfield[0] = startfield[1] = undefined;
|
||||||
|
|
Loading…
Reference in New Issue