- Timestamp:
- 2024-01-03T16:22:55+01:00 (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageViewerDialog.java
r18924 r18934 180 180 this.layers.getModel().addChangeListener(l -> { 181 181 // We need to check to see whether or not the worker is shut down. See #22922 for details. 182 if (!MainApplication.worker.isShutdown() ) {182 if (!MainApplication.worker.isShutdown() && this.isDialogShowing()) { 183 183 MainApplication.worker.execute(() -> GuiHelper.runInEDT(() -> { 184 184 Component selected = this.layers.getSelectedComponent(); … … 189 189 } 190 190 }); 191 } 192 193 @Override 194 public void showNotify() { 195 super.showNotify(); 196 Component selected = this.layers.getSelectedComponent(); 197 if (selected instanceof MoveImgDisplayPanel) { 198 ((MoveImgDisplayPanel<?>) selected).fireModelUpdate(); 199 } 191 200 } 192 201 … … 930 939 if (!isDialogShowing()) { 931 940 setIsDocked(false); // always open a detached window when an image is clicked and dialog is closed 932 showDialog();941 unfurlDialog(); 933 942 } else if (isDocked && isCollapsed) { 934 943 expand();
Note:
See TracChangeset
for help on using the changeset viewer.