Changeset 12630 in josm for trunk/src/org/openstreetmap/josm/actions/DialogsToggleAction.java
- Timestamp:
- 2017-08-24T00:15:51+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/DialogsToggleAction.java
r12132 r12630 9 9 10 10 import org.openstreetmap.josm.Main; 11 import org.openstreetmap.josm.gui.MainApplication; 12 import org.openstreetmap.josm.gui.MapFrame; 11 13 import org.openstreetmap.josm.tools.ImageProvider; 12 14 import org.openstreetmap.josm.tools.Shortcut; … … 47 49 48 50 protected void setMode() { 49 if (Main .isDisplayingMapView()) {51 if (MainApplication.isDisplayingMapView()) { 50 52 boolean selected = isSelected(); 51 53 if (!selected) { … … 53 55 sideToolbarPreviouslyVisible = Main.pref.getBoolean("sidetoolbar.visible", true); 54 56 } 55 Main.map.setDialogsPanelVisible(selected); 56 Main.map.statusLine.setVisible(selected || Main.pref.getBoolean("statusbar.always-visible", true)); 57 MapFrame map = MainApplication.getMap(); 58 map.setDialogsPanelVisible(selected); 59 map.statusLine.setVisible(selected || Main.pref.getBoolean("statusbar.always-visible", true)); 57 60 Main.main.menu.setVisible(selected || Main.pref.getBoolean("menu.always-visible", true)); 58 61 // Toolbars listen to preference changes, use it here … … 63 66 Main.pref.put("sidetoolbar.visible", selected); 64 67 } 65 Main.map.mapView.rememberLastPositionOnScreen();68 map.mapView.rememberLastPositionOnScreen(); 66 69 } 67 70 }
Note:
See TracChangeset
for help on using the changeset viewer.