Fix being unable to close menu if opened during certain times
parent
1df2297824
commit
de1ba57421
|
@ -277,8 +277,10 @@ export default class MenuUiHandler extends MessageUiHandler {
|
||||||
}
|
}
|
||||||
} else if (button === Button.CANCEL) {
|
} else if (button === Button.CANCEL) {
|
||||||
success = true;
|
success = true;
|
||||||
if (!ui.revertMode())
|
ui.revertMode().then(result => {
|
||||||
|
if (!result)
|
||||||
ui.setMode(Mode.MESSAGE);
|
ui.setMode(Mode.MESSAGE);
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
switch (button) {
|
switch (button) {
|
||||||
case Button.UP:
|
case Button.UP:
|
||||||
|
|
Loading…
Reference in New Issue