Ignore:
Timestamp:
2015-11-15T01:43:19+01:00 (4 years ago)
Author:
Don-vip
Message:

fix #12084 - allow to hide main toolbar

File:
1 edited

Legend:

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

    r8510 r9006  
    5757            Main.map.setDialogsPanelVisible(selected);
    5858            Main.map.statusLine.setVisible(selected || Main.pref.getBoolean("statusbar.always-visible", true));
    59             Main.toolbar.control.setVisible(selected || Main.pref.getBoolean("toolbar.always-visible", true));
    6059            Main.main.menu.setVisible(selected || Main.pref.getBoolean("menu.always-visible", true));
    61             // sideToolBar listens to preference changes, use it here
     60            // Toolbars listen to preference changes, use it here
     61            if (!Main.pref.getBoolean("toolbar.always-visible", true)) {
     62                Main.pref.put("toolbar.visible", selected);
     63            }
    6264            if (!Main.pref.getBoolean("sidetoolbar.always-visible", true)) {
    6365                Main.pref.put("sidetoolbar.visible", selected);
Note: See TracChangeset for help on using the changeset viewer.