- Timestamp:
- Apr 1, 2013, 2:13:33 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
java/installer2/src/net/oni2/aeinstaller/gui/downloadwindow/Downloader.java
r648 r773 50 50 * @param dependencies 51 51 * List of mods that only are auto-resolved dependencies 52 * @param isCoreDownload 53 * Downloading core packages - can not be aborted 52 54 */ 53 public Downloader(TreeSet<Package> mods, TreeSet<Package> dependencies) { 55 public Downloader(TreeSet<Package> mods, TreeSet<Package> dependencies, 56 boolean isCoreDownload) { 54 57 super(); 58 59 if (isCoreDownload) { 60 setTitle(bundle.getString("frame.titleCore")); 61 btnAbort.setEnabled(false); 62 } 55 63 56 64 setResizable(false); … … 78 86 @SuppressWarnings("unused") 79 87 private boolean confirm() { 80 int res = JOptionPane.showConfirmDialog(this, 81 bundle.getString("abort.text"), 82 bundle.getString("abort.title"), JOptionPane.YES_NO_OPTION, 83 JOptionPane.WARNING_MESSAGE); 84 return res == JOptionPane.YES_OPTION; 88 if (btnAbort.isEnabled()) { 89 int res = JOptionPane.showConfirmDialog(this, 90 bundle.getString("abort.text"), 91 bundle.getString("abort.title"), JOptionPane.YES_NO_OPTION, 92 JOptionPane.WARNING_MESSAGE); 93 return res == JOptionPane.YES_OPTION; 94 } else 95 return false; 85 96 } 86 97
Note:
See TracChangeset
for help on using the changeset viewer.