}\r
if (!files.equals(coloursFound.toString()))\r
{\r
- jalview.bin.Cache.setProperty("USER_DEFINED_COLOURS", coloursFound.toString());\r
+ if (coloursFound.toString().length() > 1)\r
+ jalview.bin.Cache.setProperty("USER_DEFINED_COLOURS",\r
+ coloursFound.toString());\r
+ else\r
+ jalview.bin.Cache.applicationProperties.remove("USER_DEFINED_COLOURS");\r
}\r
}\r
\r
}\r
}\r
\r
- jalview.bin.Cache.setProperty("USER_DEFINED_COLOURS", coloursFound.toString());\r
+ if (coloursFound.toString().length() > 1)\r
+ jalview.bin.Cache.setProperty("USER_DEFINED_COLOURS", coloursFound.toString());\r
+ else\r
+ jalview.bin.Cache.applicationProperties.remove("USER_DEFINED_COLOURS");\r
\r
}\r
}\r