Changeset 2866 in josm for trunk/src/org/openstreetmap/josm/plugins
- Timestamp:
- 2010-01-16T13:50:36+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
r2864 r2866 170 170 ) 171 171 + "</html>"; 172 togglePreferenceKey = "pluginmanager. version";172 togglePreferenceKey = "pluginmanager.dontshowagain.version"; 173 173 } else { 174 174 long tim = System.currentTimeMillis(); … … 183 183 + tr("Last plugin update more than {0} days ago.", d) 184 184 + "</html>"; 185 togglePreferenceKey = "pluginmanager. time";185 togglePreferenceKey = "pluginmanager.dontshowagain.time"; 186 186 } 187 187 } … … 206 206 pnlMessage.setMessage(message); 207 207 pnlMessage.initDontShowAgain(togglePreferenceKey); 208 209 // check whether automatic update at startup was disabled 210 // 211 boolean doAsk = !Main.pref.getBoolean(togglePreferenceKey, false); 212 if (! doAsk) return false; 208 213 209 214 int ret = HelpAwareOptionPane.showOptionDialog( … … 792 797 if (! plugins.contains(plugin.getPluginInformation().name)) 793 798 // plugin not activated ? strange in this context but anyway, don't bother 794 // the user with dialogs, skip condi ational deactivation799 // the user with dialogs, skip conditional deactivation 795 800 return; 796 801 … … 883 888 gc.fill = GridBagConstraints.HORIZONTAL; 884 889 gc.weighty = 0.0; 885 add(cbDontShowAgain = new JCheckBox(tr("Do not show again(remembers choice)")), gc);890 add(cbDontShowAgain = new JCheckBox(tr("Do not check and ask again at startup (remembers choice)")), gc); 886 891 cbDontShowAgain.setFont(cbDontShowAgain.getFont().deriveFont(Font.PLAIN)); 887 892 }
Note:
See TracChangeset
for help on using the changeset viewer.