- Timestamp:
- 2009-06-10T16:16:01+02:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/GpxLayer.java
r1646 r1658 806 806 toDownload.size())), GBC.eol()); 807 807 808 if ( JOptionPane.showConfirmDialog(Main.parent, msg,808 if (toDownload.size() > 1 && JOptionPane.showConfirmDialog(Main.parent, msg, 809 809 tr("Download from OSM along this track"), 810 810 JOptionPane.OK_CANCEL_OPTION) == JOptionPane.CANCEL_OPTION) { -
trunk/src/org/openstreetmap/josm/tools/DontShowAgainInfo.java
r1169 r1658 17 17 18 18 public static boolean show(String prefKey, String msg) { 19 return show(prefKey, new JLabel(msg), true, JOptionPane.OK_CANCEL_OPTION, JOptionPane.OK_OPTION);19 return show(prefKey, new JLabel(msg), false, JOptionPane.OK_CANCEL_OPTION, JOptionPane.OK_OPTION); 20 20 } 21 21 … … 25 25 26 26 public static boolean show(String prefKey, Container msg) { 27 return show(prefKey, msg, true, JOptionPane.OK_CANCEL_OPTION, JOptionPane.OK_OPTION);27 return show(prefKey, msg, false, JOptionPane.OK_CANCEL_OPTION, JOptionPane.OK_OPTION); 28 28 } 29 29 30 30 public static boolean show(String prefKey, Container msg, Boolean state, int options, int true_option) { 31 if (!Main.pref.getBoolean("message."+prefKey )) {31 if (!Main.pref.getBoolean("message."+prefKey, state)) { 32 32 JCheckBox dontshowagain = new JCheckBox(tr("Do not show again")); 33 33 dontshowagain.setSelected(Main.pref.getBoolean("message."+prefKey, state));
Note:
See TracChangeset
for help on using the changeset viewer.