- Timestamp:
- 2011-12-30T23:10:09+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/progress/PleaseWaitProgressMonitor.java
r4739 r4754 48 48 private boolean cancelable; 49 49 50 private void setDialogVisible(boolean visible) { 51 if (dialog.isVisible() != visible) { 52 dialog.setVisible(visible); 53 } 54 } 55 50 56 private ProgressMonitorDialog getDialog() { 51 57 … … 60 66 } 61 67 if (dialog != null) { 62 dialog.setVisible(!isInBackground || backgroundMonitor == null);68 setDialogVisible(!isInBackground || backgroundMonitor == null); 63 69 } 64 70 … … 66 72 backgroundMonitor.setVisible(true); 67 73 if (dialog != null) { 68 dialog.setVisible(false);74 setDialogVisible(false); 69 75 } 70 76 return backgroundMonitor; … … 72 78 backgroundMonitor.setVisible(false); 73 79 if (dialog != null) { 74 dialog.setVisible(true);80 setDialogVisible(true); 75 81 } 76 82 return dialog; 77 83 } else if (dialog != null) { 78 dialog.setVisible(true);84 setDialogVisible(true); 79 85 return dialog; 80 86 } else
Note:
See TracChangeset
for help on using the changeset viewer.