Added support for the allow_zip cfg setting
This commit is contained in:
parent
8f4b3c5fab
commit
1a2324f4de
1 changed files with 4 additions and 0 deletions
|
@ -241,6 +241,10 @@ public class ManagerFrame extends JFrame implements ActionListener, HashObserver
|
||||||
public boolean accept( File f ) {
|
public boolean accept( File f ) {
|
||||||
if ( f.isFile() ) {
|
if ( f.isFile() ) {
|
||||||
if ( f.getName().endsWith(".ftl") ) return true;
|
if ( f.getName().endsWith(".ftl") ) return true;
|
||||||
|
|
||||||
|
if ( config.getProperty( "allow_zip", "false" ).equals( "true" ) ) {
|
||||||
|
if ( f.getName().endsWith(".zip") ) return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue