Ignore:
Timestamp:
2016-08-11T15:26:20+02:00 (8 years ago)
Author:
simon04
Message:

fix #11874 - No progress bar while downloading plugins

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/SplashScreen.java

    r10715 r10781  
    216216        @Override
    217217        public void beginTask(String title) {
    218             if (title != null) {
     218            if (title != null && !title.isEmpty()) {
    219219                if (Main.isDebugEnabled()) {
    220220                    Main.debug(title);
     
    258258        @Override
    259259        public ProgressMonitor createSubTaskMonitor(int ticks, boolean internal) {
    260             return latestSubtask;
     260            if (latestSubtask != null) {
     261                return latestSubtask;
     262            } else {
     263                // subTask has not been called before, such as for plugin update, #11874
     264                return this;
     265            }
    261266        }
    262267
Note: See TracChangeset for help on using the changeset viewer.