forked from Clones/Controlify
🐛 Radial menu: fix not being able to back out of edit screen after changing an action
This commit is contained in:
@ -120,6 +120,7 @@ public class RadialMenuScreen extends Screen implements ScreenControllerEventLis
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (editMode && controller.bindings().GUI_BACK.justPressed()) {
|
if (editMode && controller.bindings().GUI_BACK.justPressed()) {
|
||||||
|
playClickSound();
|
||||||
onClose();
|
onClose();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -184,6 +185,7 @@ public class RadialMenuScreen extends Screen implements ScreenControllerEventLis
|
|||||||
private void finishEditing() {
|
private void finishEditing() {
|
||||||
isEditing = false;
|
isEditing = false;
|
||||||
removeWidget(actionSelectList);
|
removeWidget(actionSelectList);
|
||||||
|
this.setFocused(null);
|
||||||
actionSelectList = null;
|
actionSelectList = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user