Ignore:
Timestamp:
2012-03-31T19:22:21+02:00 (14 years ago)
Author:
Don-vip
Message:

fix #7311 - lower value of default plugin update interval: 30 days

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/plugin/PluginUpdatePolicyPanel.java

    r4310 r5145  
    2222import org.openstreetmap.josm.gui.JMultilineLabel;
    2323import org.openstreetmap.josm.gui.widgets.SelectAllOnFocusGainedDecorator;
     24import org.openstreetmap.josm.plugins.PluginHandler;
    2425
    2526/**
     
    192193            }
    193194            if (days <= 0) {
    194                 days = 60;
     195                days = PluginHandler.DEFAULT_TIME_BASED_UPDATE_INTERVAL;
    195196            }
    196197        }
    197198        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);
    199200        }
    200201        tfUpdateInterval.setText(Integer.toString(days));
     
    230231            days = Integer.parseInt(tfUpdateInterval.getText().trim());
    231232            if (days <= 0) {
    232                 days = 60;
     233                days = PluginHandler.DEFAULT_TIME_BASED_UPDATE_INTERVAL;
    233234            }
    234235        } catch(NumberFormatException e) {
    235             days = 60;
     236            days = PluginHandler.DEFAULT_TIME_BASED_UPDATE_INTERVAL;
    236237        }
    237238        Main.pref.putInteger("pluginmanager.time-based-update.interval", days);
Note: See TracChangeset for help on using the changeset viewer.