public void save()
 {
     WallpaperServiceConfig config = new WallpaperServiceConfig();
     config.addValue("items",directories);
     config.addValue("index",index);
     config.addValue("recursiveSearch",recursiveSearch);
     config.save("%plugins%LocalDirectories.conf");
 }
 public void save()
 {
     WallpaperServiceConfig config = new WallpaperServiceConfig();
     config.addValue("items",filenames);
     config.addValue("index",index);
     config.save("%plugins%LocalFiles.conf");
 }