Ignore:
Timestamp:
2020-05-27T11:16:39+02:00 (4 years ago)
Author:
GerdP
Message:

see #19296: Actions should avoid to install listeners which are not needed

  • either don't call installAdapters() or overwrite listenToSelectionChange()
  • partly reverts previous changes so that installAdapters() is not overwritten

One has to be careful because installAdapters() also calls initEnabledState()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/HelpAction.java

    r14153 r16509  
    3535        super(tr("Help"), "help", null,
    3636                shortcut ? Shortcut.registerShortcut("system:help", tr("Help"), KeyEvent.VK_F1, Shortcut.DIRECT) : null,
    37                 true);
     37                true, false);
    3838        setEnabled(!NetworkManager.isOffline(OnlineResource.JOSM_WEBSITE));
    3939    }
Note: See TracChangeset for help on using the changeset viewer.