File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1189,10 +1189,11 @@ public void actionPerformed(ActionEvent e) {
1189
1189
//menu.addActionListener(listener);
1190
1190
1191
1191
boolean ifound = false ;
1192
+ boolean skipLibraryFolder = folder .equals ((Base .getSketchbookFolder ()));
1192
1193
1193
1194
for (int i = 0 ; i < list .length ; i ++) {
1194
- if ((list [i ].charAt (0 ) == '.' ) ||
1195
- list [i ].equals ( "CVS" )) continue ;
1195
+ if ((list [i ].charAt (0 ) == '.' ) || list [ i ]. startsWith ( "__disabled_" ) || list [ i ]. equals ( "CVS" ) ||
1196
+ ( skipLibraryFolder && list [i ].compareToIgnoreCase ( "libraries" )== 0 )) continue ;
1196
1197
1197
1198
File subfolder = new File (folder , list [i ]);
1198
1199
if (!subfolder .isDirectory ()) continue ;
@@ -1256,6 +1257,7 @@ protected boolean addLibraries(JMenu menu, File folder) throws IOException {
1256
1257
public boolean accept (File dir , String name ) {
1257
1258
// skip .DS_Store files, .svn folders, etc
1258
1259
if (name .charAt (0 ) == '.' ) return false ;
1260
+ if (name .startsWith ("__disabled_" )) return false ;
1259
1261
if (name .equals ("CVS" )) return false ;
1260
1262
return (new File (dir , name ).isDirectory ());
1261
1263
}
You can’t perform that action at this time.
0 commit comments