Ignore:
Timestamp:
2018-08-12T21:38:40+02:00 (6 years ago)
Author:
Don-vip
Message:

see #15410, see #16604 - restore restart notification when mappaint colors are modified in preferences

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/display/ColorPreference.java

    r14149 r14152  
    236236                .sorted((e1, e2) -> {
    237237                    int cat = Integer.compare(
    238                             getCategroyPriority(e1.info.getCategory()),
    239                             getCategroyPriority(e2.info.getCategory()));
     238                            getCategoryPriority(e1.info.getCategory()),
     239                            getCategoryPriority(e2.info.getCategory()));
    240240                    if (cat != 0) return cat;
    241241                    return Collator.getInstance().compare(e1.getDisplay(), e2.getDisplay());
     
    246246            this.colors.repaint();
    247247        }
    248 
    249     }
    250 
    251     private static int getCategroyPriority(String category) {
     248    }
     249
     250    private static int getCategoryPriority(String category) {
    252251        switch (category) {
    253252            case NamedColorProperty.COLOR_CATEGORY_GENERAL: return 1;
     
    409408            if (e.info.getValue() != null) {
    410409                if (e.toProperty().put(e.info.getValue())
    411                         && e.key.startsWith("mappaint.")) {
     410                        && NamedColorProperty.COLOR_CATEGORY_MAPPAINT.equals(e.info.getCategory())) {
    412411                    ret = true;
    413412                }
Note: See TracChangeset for help on using the changeset viewer.