Changeset 6990 in josm for trunk/src/org/openstreetmap/josm/plugins
- Timestamp:
- 2014-04-19T00:36:43+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
r6890 r6990 353 353 String policy = Main.pref.get(togglePreferenceKey, "ask"); 354 354 policy = policy.trim().toLowerCase(); 355 if ( policy.equals("never")) {355 if ("never".equals(policy)) { 356 356 if ("pluginmanager.version-based-update.policy".equals(togglePreferenceKey)) { 357 357 Main.info(tr("Skipping plugin update after JOSM upgrade. Automatic update at startup is disabled.")); … … 362 362 } 363 363 364 if ( policy.equals("always")) {364 if ("always".equals(policy)) { 365 365 if ("pluginmanager.version-based-update.policy".equals(togglePreferenceKey)) { 366 366 Main.info(tr("Running plugin update after JOSM upgrade. Automatic update at startup is enabled.")); … … 371 371 } 372 372 373 if (! policy.equals("ask")) {373 if (!"ask".equals(policy)) { 374 374 Main.warn(tr("Unexpected value ''{0}'' for preference ''{1}''. Assuming value ''ask''.", policy, togglePreferenceKey)); 375 375 } … … 1355 1355 String policy = Main.pref.get(preferencesKey, "ask"); 1356 1356 policy = policy.trim().toLowerCase(); 1357 cbDontShowAgain.setSelected(! policy.equals("ask"));1357 cbDontShowAgain.setSelected(!"ask".equals(policy)); 1358 1358 } 1359 1359
Note:
See TracChangeset
for help on using the changeset viewer.