Fixed #50 (somehow?), as well as GWT runtime errors
This commit is contained in:
@@ -142,6 +142,8 @@ public class LoadDialog extends FloatingDialog{
|
||||
|
||||
slots.row();
|
||||
|
||||
if(Vars.gwt) return;
|
||||
|
||||
slots.addImageTextButton("$text.save.import", "icon-add", "clear", 14*3, () -> {
|
||||
new FileChooser("$text.save.import", f -> f.extension().equals("mins"), true, file -> {
|
||||
if(SaveIO.isSaveValid(file)){
|
||||
|
||||
@@ -55,13 +55,15 @@ public class PausedDialog extends FloatingDialog{
|
||||
|
||||
content().row();
|
||||
|
||||
content().addButton("$text.hostserver", () ->{
|
||||
if(Vars.world.getMap().custom){
|
||||
ui.showError("$text.nohost");
|
||||
}else {
|
||||
ui.host.show();
|
||||
}
|
||||
}).disabled(b -> Net.active());
|
||||
if(!Vars.gwt) {
|
||||
content().addButton("$text.hostserver", () -> {
|
||||
if (Vars.world.getMap().custom) {
|
||||
ui.showError("$text.nohost");
|
||||
} else {
|
||||
ui.host.show();
|
||||
}
|
||||
}).disabled(b -> Net.active());
|
||||
}
|
||||
|
||||
content().row();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user