Skip to content

Commit e4ded57

Browse files
committed
rollback
1 parent 7884349 commit e4ded57

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/main/java/org/broad/igv/ui/commandbar/HostedGenomeSelectionDialog.java

+8-8
Original file line numberDiff line numberDiff line change
@@ -223,12 +223,12 @@ private void configureDownloadButtons(GenomeListItem item) {
223223
final boolean sequenceDownloadable = GenomeDownloadUtils.isSequenceDownloadable(item.getPath());
224224
final boolean annotationsDownloadable = GenomeDownloadUtils.isAnnotationsDownloadable(item.getPath());
225225
// downloadSequenceCB.setEnabled(sequenceDownloadable);
226-
downloadSequenceRB.setEnabled(sequenceDownloadable);
227-
remoteSequenceRB.setEnabled(sequenceDownloadable);
226+
downloadSequenceRB.setVisible(sequenceDownloadable);
227+
remoteSequenceRB.setVisible(sequenceDownloadable);
228228

229229
// downloadAnnotationsCB.setEnabled(annotationsDownloadable);
230-
downloadAnnotationsRB.setEnabled(annotationsDownloadable);
231-
remoteAnnotationsRB.setEnabled(annotationsDownloadable);
230+
downloadAnnotationsRB.setVisible(annotationsDownloadable);
231+
remoteAnnotationsRB.setVisible(annotationsDownloadable);
232232
}
233233
}
234234

@@ -310,8 +310,8 @@ public void keyReleased(KeyEvent e) {
310310
downloadSequenceRB = new JRadioButton("Download sequence");
311311
remoteSequenceRB = new JRadioButton("Use remote sequence");
312312
remoteSequenceRB.setSelected(true);
313-
downloadSequenceRB.setEnabled(false);
314-
remoteSequenceRB.setEnabled(false);
313+
downloadSequenceRB.setVisible(false);
314+
remoteSequenceRB.setVisible(false);
315315
downloadSequenceGroup = new ButtonGroup();
316316
downloadSequenceGroup.add(downloadSequenceRB);
317317
downloadSequenceGroup.add(remoteSequenceRB);
@@ -325,8 +325,8 @@ public void keyReleased(KeyEvent e) {
325325
downloadAnnotationsRB = new JRadioButton("Download annotations");
326326
remoteAnnotationsRB = new JRadioButton("Use remote annotations");
327327
remoteAnnotationsRB.setSelected(true);
328-
downloadAnnotationsRB.setEnabled(false);
329-
remoteAnnotationsRB.setEnabled(false);
328+
downloadAnnotationsRB.setVisible(false);
329+
remoteAnnotationsRB.setVisible(false);
330330
downloadAnnotationsGroup = new ButtonGroup();
331331
downloadAnnotationsGroup.add(downloadAnnotationsRB);
332332
downloadAnnotationsGroup.add(remoteAnnotationsRB);

0 commit comments

Comments
 (0)