Added support for the allow_zip cfg setting

This commit is contained in:
Vhati 2013-08-22 02:34:30 -04:00
parent 8f4b3c5fab
commit 1a2324f4de

View file

@ -241,6 +241,10 @@ public class ManagerFrame extends JFrame implements ActionListener, HashObserver
public boolean accept( File f ) {
if ( f.isFile() ) {
if ( f.getName().endsWith(".ftl") ) return true;
if ( config.getProperty( "allow_zip", "false" ).equals( "true" ) ) {
if ( f.getName().endsWith(".zip") ) return true;
}
}
return false;
}