fix crash returning to "Edit Profile" after cancelling world import
This commit is contained in:
parent
011168f3e8
commit
6006fd8f87
|
@ -70,6 +70,7 @@ public class GuiNameWorldImport extends GuiScreen {
|
|||
protected void actionPerformed(GuiButton par1GuiButton) {
|
||||
if (par1GuiButton.enabled) {
|
||||
if (par1GuiButton.id == 1) {
|
||||
EaglerAdapter.clearFileChooserResult();
|
||||
this.mc.displayGuiScreen(this.parentGuiScreen);
|
||||
} else if (par1GuiButton.id == 0) {
|
||||
this.buttonList.clear();
|
||||
|
|
|
@ -1909,6 +1909,10 @@ public class EaglerAdapterImpl2 {
|
|||
return ret;
|
||||
}
|
||||
|
||||
public static final void clearFileChooserResult() {
|
||||
getFileChooserResult0();
|
||||
}
|
||||
|
||||
@JSBody(params = { }, script = "var ret = window.eagsFileChooser.getFileChooserResult; window.eagsFileChooser.getFileChooserResult = null; return ret;")
|
||||
private static native ArrayBuffer getFileChooserResult0();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user