Changeset 622 for AE/installer2/src/net/oni2/aeinstaller/gui
- Timestamp:
- Jan 16, 2013, 8:35:08 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/installer2/src/net/oni2/aeinstaller/gui/MainWin.java
r621 r622 294 294 strTools += " - " + m.getName(); 295 295 } 296 String message = "<html>"; 297 message += String.format( 298 bundle.getString("updatesAvailable.text"), strMods, 299 strTools, SizeFormatter.format(size, 3)); 300 message += "</html>"; 301 int res = JOptionPane 302 .showConfirmDialog(this, message, 303 bundle.getString("updatesAvailable.title"), 304 JOptionPane.YES_NO_OPTION, 305 JOptionPane.QUESTION_MESSAGE); 306 if (res == JOptionPane.YES_OPTION) { 307 execUpdates = new TreeSet<Mod>(); 308 execUpdates.addAll(mods); 309 execUpdates.addAll(tools); 296 if (size > 0) { 297 String message = "<html>"; 298 message += String.format( 299 bundle.getString("updatesAvailable.text"), strMods, 300 strTools, SizeFormatter.format(size, 3)); 301 message += "</html>"; 302 int res = JOptionPane.showConfirmDialog(this, message, 303 bundle.getString("updatesAvailable.title"), 304 JOptionPane.YES_NO_OPTION, 305 JOptionPane.QUESTION_MESSAGE); 306 if (res == JOptionPane.YES_OPTION) { 307 execUpdates = new TreeSet<Mod>(); 308 execUpdates.addAll(mods); 309 execUpdates.addAll(tools); 310 } 310 311 } 311 312 }
Note:
See TracChangeset
for help on using the changeset viewer.