Changeset 13219 in josm for trunk/src/org
- Timestamp:
- 2017-12-18T00:14:48+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/MainLayerManager.java
r13215 r13219 17 17 import org.openstreetmap.josm.gui.io.AsynchronousUploadPrimitivesTask; 18 18 import org.openstreetmap.josm.gui.util.GuiHelper; 19 import org.openstreetmap.josm.tools.Logging; 19 20 20 21 /** … … 426 427 activeLayerChangeListeners.clear(); 427 428 layerAvailabilityListeners.clear(); 428 } else if (!GraphicsEnvironment.isHeadless()) { 429 GuiHelper.runInEDT(() -> JOptionPane.showMessageDialog(MainApplication.parent, 430 tr("A background upload is already in progress. Cannot reset state until the upload is finished."))); 429 } else { 430 String msg = tr("A background upload is already in progress. Cannot reset state until the upload is finished."); 431 Logging.warn(msg); 432 if (!GraphicsEnvironment.isHeadless()) { 433 GuiHelper.runInEDT(() -> JOptionPane.showMessageDialog(MainApplication.parent, msg)); 434 } 431 435 } 432 436 }
Note:
See TracChangeset
for help on using the changeset viewer.