Changeset 6129 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2013-08-09T23:13:59+02:00 (11 years ago)
Author:
bastiK
Message:

see #4029 - session menu now visible in expert mode - Please report bugs and feature requests!

File:
1 edited

Legend:

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

    r6097 r6129  
    481481        add(fileMenu, save);
    482482        add(fileMenu, saveAs);
    483         if (Main.pref.getBoolean("session")) {
    484             sessionMenu.setToolTipText(tr("Save and load the current session (list of layers, etc.)"));
    485             sessionMenu.setIcon(ImageProvider.get("session"));
    486             sessionSaveAs = new SessionSaveAsAction();
    487             sessionLoad = new SessionLoadAction();
    488             add(sessionMenu, sessionSaveAs);
    489             add(sessionMenu, sessionLoad);
    490             fileMenu.add(sessionMenu);
    491         }
     483        sessionMenu.setToolTipText(tr("Save and load the current session (list of layers, etc.)"));
     484        sessionMenu.setIcon(ImageProvider.get("session"));
     485        sessionSaveAs = new SessionSaveAsAction();
     486        sessionLoad = new SessionLoadAction();
     487        add(sessionMenu, sessionSaveAs);
     488        add(sessionMenu, sessionLoad);
     489        fileMenu.add(sessionMenu);
     490        ExpertToggleAction.addVisibilitySwitcher(sessionMenu);
    492491        add(fileMenu, gpxExport, true);
    493492        fileMenu.addSeparator();
Note: See TracChangeset for help on using the changeset viewer.