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) {
|
protected void actionPerformed(GuiButton par1GuiButton) {
|
||||||
if (par1GuiButton.enabled) {
|
if (par1GuiButton.enabled) {
|
||||||
if (par1GuiButton.id == 1) {
|
if (par1GuiButton.id == 1) {
|
||||||
|
EaglerAdapter.clearFileChooserResult();
|
||||||
this.mc.displayGuiScreen(this.parentGuiScreen);
|
this.mc.displayGuiScreen(this.parentGuiScreen);
|
||||||
} else if (par1GuiButton.id == 0) {
|
} else if (par1GuiButton.id == 0) {
|
||||||
this.buttonList.clear();
|
this.buttonList.clear();
|
||||||
|
|
|
@ -1908,6 +1908,10 @@ public class EaglerAdapterImpl2 {
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static final void clearFileChooserResult() {
|
||||||
|
getFileChooserResult0();
|
||||||
|
}
|
||||||
|
|
||||||
@JSBody(params = { }, script = "var ret = window.eagsFileChooser.getFileChooserResult; window.eagsFileChooser.getFileChooserResult = null; return ret;")
|
@JSBody(params = { }, script = "var ret = window.eagsFileChooser.getFileChooserResult; window.eagsFileChooser.getFileChooserResult = null; return ret;")
|
||||||
private static native ArrayBuffer getFileChooserResult0();
|
private static native ArrayBuffer getFileChooserResult0();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user