public void uploadStatusChanged(UserConsoleModel model, boolean uploading) {
if (uploading) {
if (blockingOverlay == null) {
blockingOverlay = new JLabel(" ");
blockingOverlay.putClientProperty(OverlayContainer.BLOCKING_PROPERTY, Boolean.TRUE);
getOverlayContainer().addOverlay(blockingOverlay, new OverlayCenterPositioner());
}
} else {
getOverlayContainer().removeOverlay(blockingOverlay);
blockingOverlay = null;
}