Changeset 4658 in josm for trunk/src/org


Ignore:
Timestamp:
2011-12-12T14:00:07+01:00 (13 years ago)
Author:
bastiK
Message:

expert mode: fixed bug that sets draw.helper-line=false without asking the user

File:
1 edited

Legend:

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

    r4512 r4658  
    8383        panel.add(showSplashScreen, GBC.eop().insets(20, 0, 0, 0));
    8484
    85         if(Main.pref.getBoolean("expert", false)) {
    86             // Show ID in selection
    87             showID.setToolTipText(tr("Show object ID in selection lists"));
    88             showID.setSelected(Main.pref.getBoolean("osm-primitives.showid", false));
     85        // Show ID in selection
     86        showID.setToolTipText(tr("Show object ID in selection lists"));
     87        showID.setSelected(Main.pref.getBoolean("osm-primitives.showid", false));
     88
     89        // Show localized names
     90        showLocalizedName.setToolTipText(tr("Show localized name in selection lists, if available"));
     91        showLocalizedName.setSelected(Main.pref.getBoolean("osm-primitives.localize-name", true));
     92
     93        drawHelperLine.setToolTipText(tr("Draw rubber-band helper line"));
     94        drawHelperLine.setSelected(Main.pref.getBoolean("draw.helper-line", true));
     95
     96        modeless.setToolTipText(tr("Do not require to switch modes (potlatch style workflow)"));
     97        modeless.setSelected(Main.pref.getBoolean("modeless", false));
     98
     99        if (Main.pref.getBoolean("expert", false)) {
    89100            panel.add(showID, GBC.eop().insets(20, 0, 0, 0));
    90 
    91             // Show localized names
    92             showLocalizedName.setToolTipText(tr("Show localized name in selection lists, if available"));
    93             showLocalizedName.setSelected(Main.pref.getBoolean("osm-primitives.localize-name", true));
    94101            panel.add(showLocalizedName, GBC.eop().insets(20, 0, 0, 0));
    95 
    96             drawHelperLine.setToolTipText(tr("Draw rubber-band helper line"));
    97             drawHelperLine.setSelected(Main.pref.getBoolean("draw.helper-line", true));
    98102            panel.add(drawHelperLine, GBC.eop().insets(20, 0, 0, 0));
    99 
    100             modeless.setToolTipText(tr("Do not require to switch modes (potlatch style workflow)"));
    101             modeless.setSelected(Main.pref.getBoolean("modeless", false));
    102103            panel.add(modeless, GBC.eop().insets(20, 0, 0, 0));
    103104        }
Note: See TracChangeset for help on using the changeset viewer.