Changeset 19147 in josm
- Timestamp:
- 2024-07-17T17:43:48+02:00 (6 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/AlignImageryPanel.java
r16553 r19147 12 12 import javax.swing.JCheckBox; 13 13 import javax.swing.JPanel; 14 import javax.swing.SwingUtilities; 14 15 import javax.swing.border.CompoundBorder; 15 16 import javax.swing.border.EmptyBorder; … … 20 21 import org.openstreetmap.josm.gui.MainApplication; 21 22 import org.openstreetmap.josm.gui.MapFrame; 22 import org.openstreetmap.josm.gui.util.GuiHelper;23 23 import org.openstreetmap.josm.gui.widgets.JMultilineLabel; 24 24 import org.openstreetmap.josm.gui.widgets.UrlLabel; … … 90 90 BooleanProperty showAgain = new BooleanProperty("message.imagery.nagPanel." + infoToAdd.getUrl(), true); 91 91 MapFrame map = MainApplication.getMap(); 92 if (MainApplication.isDisplayingMapView() && showAgain.get() && !infoToAdd.isGeoreferenceValid() 93 && map.getTopPanel(AlignImageryPanel.class) == null) { 94 double w = GuiHelper.getScreenSize().getWidth(); 95 map.addTopPanel(new AlignImageryPanel(w > 1300, showAgain, infoToAdd)); 92 if (MainApplication.isDisplayingMapView() && Boolean.TRUE.equals(showAgain.get()) 93 && !infoToAdd.isGeoreferenceValid() && map.getTopPanel(AlignImageryPanel.class) == null) { 94 SwingUtilities.invokeLater(() -> { 95 double w = map.getWidth(); 96 map.addTopPanel(new AlignImageryPanel(w > 1300, showAgain, infoToAdd)); 97 }); 96 98 } 97 99 }
Note:
See TracChangeset
for help on using the changeset viewer.