mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-11 01:32:08 +10:00
added template support
This commit is contained in:
+2
@@ -240,9 +240,11 @@ public class TemplateDialog extends JDialog {
|
|||||||
File dir = new File("templates");
|
File dir = new File("templates");
|
||||||
if (dir.exists()) {
|
if (dir.exists()) {
|
||||||
for (File f : dir.listFiles()) {
|
for (File f : dir.listFiles()) {
|
||||||
|
if (f.isFile() && f.getName().toLowerCase().endsWith(".diy")) {
|
||||||
files.add(f);
|
files.add(f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
LOG.debug("Found " + files.size() + " templates");
|
LOG.debug("Found " + files.size() + " templates");
|
||||||
}
|
}
|
||||||
return files;
|
return files;
|
||||||
|
|||||||
Reference in New Issue
Block a user