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