Ignore:
Timestamp:
2016-07-26T17:20:05+02:00 (8 years ago)
Author:
simon04
Message:

JOSM/wikipedia: repaint after updating WIWOSM status

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/wikipedia/src/org/wikipedia/WikipediaToggleDialog.java

    r32719 r32721  
    99import java.util.Arrays;
    1010import java.util.Collection;
    11 import java.util.Collections;
    1211import java.util.HashSet;
    1312import java.util.List;
     
    172171        protected Void doInBackground() throws Exception {
    173172            final List<WikipediaEntry> entries = getEntries();
    174             Collections.sort(entries);
     173            entries.sort(null);
    175174            publish(entries.toArray(new WikipediaEntry[entries.size()]));
    176             if (!entries.isEmpty()) {
    177                 WikipediaApp.updateWIWOSMStatus(entries.get(0).wikipediaLang, entries);
    178             }
     175            WikipediaApp.partitionList(entries, 20).forEach(chunk -> {
     176                WikipediaApp.updateWIWOSMStatus(chunk.get(0).wikipediaLang, chunk);
     177                list.repaint();
     178            });
    179179            return null;
    180180        }
Note: See TracChangeset for help on using the changeset viewer.