]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - tim/prune/config/Config.java
Version 13.4, May 2012
[GpsPrune.git] / tim / prune / config / Config.java
index 412f408b803c79055ffbe7eb100ab9d707d606c2..a286d7fcc116315d03d4666b3af2d0cd4883b8af 100644 (file)
@@ -16,7 +16,7 @@ public abstract class Config
        private static File _configFile = null;
 
        /** Hashtable containing all config values */
-       private static Properties _configValues = new Properties();
+       private static Properties _configValues = null;
        /** Colour scheme object is also part of config */
        private static ColourScheme _colourScheme = new ColourScheme();
        /** Recently-used file list */
@@ -44,6 +44,8 @@ public abstract class Config
        public static final String KEY_METRIC_UNITS = "prune.metricunits";
        /** Key for index of map source */
        public static final String KEY_MAPSOURCE_INDEX = "prune.mapsource";
+       /** Key for number of fixed map sources */
+       public static final String KEY_NUM_FIXED_MAPS = "prune.numfixedmapsources";
        /** Key for String containing custom map sources */
        public static final String KEY_MAPSOURCE_LIST = "prune.mapsourcelist";
        /** Key for show map flag */
@@ -74,6 +76,12 @@ public abstract class Config
        public static final String KEY_RECENT_FILES = "prune.recentfiles";
 
 
+       /** Initialise the default properties */
+       static
+       {
+               _configValues = getDefaultProperties();
+       }
+
        /**
         * Load the default configuration file
         */