Changeset 14248 in josm for trunk/src/org/openstreetmap/josm/gui/util/MultikeyActionsHandler.java
- Timestamp:
- 2018-09-13T22:48:54+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/util/MultikeyActionsHandler.java
r14153 r14248 24 24 25 25 import org.openstreetmap.josm.gui.MainApplication; 26 import org.openstreetmap.josm.gui.MainFrame; 26 27 import org.openstreetmap.josm.gui.util.MultikeyShortcutAction.MultikeyInfo; 27 28 import org.openstreetmap.josm.tools.Shortcut; … … 101 102 } 102 103 layers.addPopupMenuListener(new StatusLinePopupMenuListener()); 103 layers.show(MainApplication.getMainFrame(), Integer.MAX_VALUE, Integer.MAX_VALUE); 104 layers.setLocation(MainApplication.getMainFrame().getX() + MainApplication.getMainFrame().getWidth() - layers.getWidth(), 105 MainApplication.getMainFrame().getY() + MainApplication.getMainFrame().getHeight() - layers.getHeight()); 104 MainFrame mainFrame = MainApplication.getMainFrame(); 105 if (mainFrame.isShowing()) { 106 layers.show(mainFrame, Integer.MAX_VALUE, Integer.MAX_VALUE); 107 layers.setLocation(mainFrame.getX() + mainFrame.getWidth() - layers.getWidth(), 108 mainFrame.getY() + mainFrame.getHeight() - layers.getHeight()); 109 } 106 110 } 107 111 }
Note:
See TracChangeset
for help on using the changeset viewer.