From 60fbd430b39b554e947c03d025c0c3e6ae964d32 Mon Sep 17 00:00:00 2001 From: Sollace Date: Wed, 22 Aug 2018 14:59:48 +0200 Subject: [PATCH] Update all the buttons together --- src/hdskins/java/com/voxelmodpack/hdskins/gui/GuiSkins.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hdskins/java/com/voxelmodpack/hdskins/gui/GuiSkins.java b/src/hdskins/java/com/voxelmodpack/hdskins/gui/GuiSkins.java index 41f96fb3..796bc22d 100644 --- a/src/hdskins/java/com/voxelmodpack/hdskins/gui/GuiSkins.java +++ b/src/hdskins/java/com/voxelmodpack/hdskins/gui/GuiSkins.java @@ -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(); } }