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) {
|
||||
success = true;
|
||||
if (!ui.revertMode())
|
||||
ui.revertMode().then(result => {
|
||||
if (!result)
|
||||
ui.setMode(Mode.MESSAGE);
|
||||
});
|
||||
} else {
|
||||
switch (button) {
|
||||
case Button.UP:
|
||||
|
|
Loading…
Reference in New Issue