Changeset 5117 in josm for trunk


Ignore:
Timestamp:
2012-03-25T19:52:15+02:00 (8 years ago)
Author:
Don-vip
Message:

see #7541 - Plugins list built only at first tab selection

File:
1 edited

Legend:

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

    r4970 r5117  
    185185        PreferencePanel plugins = gui.createPreferenceTab(this);
    186186        plugins.add(buildContentPanel(), gc);
    187         pnlPluginPreferences.refreshView();
     187        //pnlPluginPreferences.refreshView(); // fix #7541, refreshView() will be called when the first tab will be selected
    188188        gui.addChangeListener(new PluginPreferenceActivationListener(plugins));
    189189    }
     
    422422        public void stateChanged(ChangeEvent e) {
    423423            JTabbedPane tp = (JTabbedPane)e.getSource();
    424             if (tp.getSelectedComponent() == pane) {
     424            if (tp.getSelectedComponent() == pane && !pluginPreferencesActivated) {
    425425                readLocalPluginInformation();
    426426                pluginPreferencesActivated = true;
Note: See TracChangeset for help on using the changeset viewer.