Changeset 5145 in josm for trunk/src/org/openstreetmap/josm/gui
- Timestamp:
- 2012-03-31T19:22:21+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/plugin/PluginUpdatePolicyPanel.java
r4310 r5145 22 22 import org.openstreetmap.josm.gui.JMultilineLabel; 23 23 import org.openstreetmap.josm.gui.widgets.SelectAllOnFocusGainedDecorator; 24 import org.openstreetmap.josm.plugins.PluginHandler; 24 25 25 26 /** … … 192 193 } 193 194 if (days <= 0) { 194 days = 60;195 days = PluginHandler.DEFAULT_TIME_BASED_UPDATE_INTERVAL; 195 196 } 196 197 } 197 198 if (days == 0) { 198 days =Main.pref.getInteger("pluginmanager.time-based-update.interval", 60);199 days = Main.pref.getInteger("pluginmanager.time-based-update.interval", PluginHandler.DEFAULT_TIME_BASED_UPDATE_INTERVAL); 199 200 } 200 201 tfUpdateInterval.setText(Integer.toString(days)); … … 230 231 days = Integer.parseInt(tfUpdateInterval.getText().trim()); 231 232 if (days <= 0) { 232 days = 60;233 days = PluginHandler.DEFAULT_TIME_BASED_UPDATE_INTERVAL; 233 234 } 234 235 } catch(NumberFormatException e) { 235 days = 60;236 days = PluginHandler.DEFAULT_TIME_BASED_UPDATE_INTERVAL; 236 237 } 237 238 Main.pref.putInteger("pluginmanager.time-based-update.interval", days);
Note:
See TracChangeset
for help on using the changeset viewer.
