mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-22 20:47:59 +01:00
Update all the buttons together
This commit is contained in:
parent
531368e4ee
commit
60fbd430b3
1 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue