134 | | JPanel msg = new JPanel(new GridBagLayout()); |
135 | | msg.add(new JLabel( |
136 | | tr("<html>This action will require {0} individual<br>" + "download requests. Do you wish<br>to continue?</html>", |
137 | | toDownload.size())), GBC.eol()); |
138 | | if (!GraphicsEnvironment.isHeadless() && JOptionPane.OK_OPTION != JOptionPane.showConfirmDialog( |
139 | | MainApplication.getMainFrame(), msg, title, JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE)) { |
140 | | return; |
| 134 | if (toDownload.size() > 1) { |
| 135 | JPanel msg = new JPanel(new GridBagLayout()); |
| 136 | msg.add(new JLabel( |
| 137 | trn("<html>This action will require {0} individual<br>" + "download request. Do you wish<br>to continue?</html>", |
| 138 | "<html>This action will require {0} individual<br>" + "download requests. Do you wish<br>to continue?</html>" |
| 139 | toDownload.size(), toDownload.size()), GBC.eol()); |
| 140 | if (!GraphicsEnvironment.isHeadless() && JOptionPane.OK_OPTION != JOptionPane.showConfirmDialog( |
| 141 | MainApplication.getMainFrame(), msg, title, JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE)) { |
| 142 | return; |
| 143 | } |