Changes between Initial Version and Version 1 of Ticket #21730, comment 12


Ignore:
Timestamp:
2022-01-04T11:23:05+01:00 (4 years ago)
Author:
GerdP

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #21730, comment 12

    initial v1  
    33#!java
    44        for (Map.Entry<String, Action> a : regactions.entrySet()) {
    5             if (actionsInMenu.get(a.getKey()) == null) {
     5            if (actions.get(a.getKey()) == null) {
    66                rootActionsNode.add(new DefaultMutableTreeNode(a.getValue()));
    77            }
    88        }
    99}}}
    10 With my changes the `actionsInMenu.get(a.getKey()) == null` was never true and thus only actions which appear in a menu were added. I've renamed `actions` to `actionsInMenu` to make that clearer and now the field is cleared first in `loadActions()`.
     10With my changes the `actions.get(a.getKey()) == null` was never true and thus only actions which appear in a menu were added. I've renamed `actions` to `actionsInMenu` to make that clearer and now the map is cleared first in `loadActions()`.