Update all the buttons together

This commit is contained in:
Sollace 2018-08-22 14:59:48 +02:00
parent 531368e4ee
commit 60fbd430b3

View file

@ -98,8 +98,7 @@ public class GuiSkins extends GameGui implements ISkinUploadHandler {
panorama.update();
uploader.update();
btnClear.enabled = uploader.canClear();
btnDownload.enabled = uploader.canClear();
updateButtons();
}
@Override
@ -429,7 +428,8 @@ public class GuiSkins extends GameGui implements ISkinUploadHandler {
}
private void updateButtons() {
btnClear.enabled = uploader.canClear();
btnUpload.enabled = uploader.canUpload();
btnDownload.enabled = uploader.canUpload();
btnDownload.enabled = uploader.canClear();
}
}