Changeset 35336 in osm for applications/editors/josm


Ignore:
Timestamp:
2020-02-21T15:09:24+01:00 (5 years ago)
Author:
rebeccas95
Message:

Fixing #josm18631, small changes

Location:
applications/editors/josm/plugins/indoorhelper/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/indoorhelper/src/controller/IndoorHelperController.java

    r35312 r35336  
    288288        toolboxView = new ToolBoxView();
    289289
     290        // set preference if no value ist set already
    290291        setPluginPreferences(true);
    291292
     
    473474
    474475    /**
    475      * Enables or disables the preferences for the mapcss-style.
    476      *
    477      * @param enabled Activates or disables the settings.
     476     * Enables or disables the preferences for the mapcss-style if no preference is set already.
     477     * Else uses set preference.
     478     *
     479     * @param enabled Activates or disables the settings (if no preference set).
    478480     */
    479481    private static void setPluginPreferences(boolean enabled) {
     
    488490
    489491        List<Map<String, String>> styleMapsNew = new ArrayList<>();
     492
    490493        if (!styleMaps.isEmpty()) {
    491494            styleMapsNew.addAll(styleMaps);
    492495        }
     496
    493497        for (Map<String, String> map : styleMapsNew) {
    494498            if (map.containsValue(tr("Indoor"))) {
     499                // find saved preference value
     500                enabled = map.containsValue(tr("true"));
    495501                styleMapsNew.remove(map);
    496502                break;
    497503            }
    498504        }
     505
    499506        Map<String, String> indoorMapPaint = new HashMap<>();
    500507        indoorMapPaint.put("title", tr("Indoor"));
  • applications/editors/josm/plugins/indoorhelper/src/views/ToolBoxView.java

    r35312 r35336  
    134134
    135135       //---- helpButton ----
    136        helpButton.setText(tr("<html><b>?</strong></b>"));
     136       helpButton.setText(tr("help"));
    137137       helpButton.setToolTipText(tr("Show Help-Browser."));
    138138       helpButton.setBackground(Color.LIGHT_GRAY);
Note: See TracChangeset for help on using the changeset viewer.