better display of subfolders

This commit is contained in:
Maxmtg
2013-08-19 22:48:33 +00:00
parent ada5fa5056
commit eebbb45b2c
2 changed files with 3 additions and 3 deletions

View File

@@ -109,9 +109,9 @@ public class DeckgenUtil {
String name = selection;
int idxSlash = name.indexOf('/');
while( idxSlash > 0 ) {
String sf = name.substring(0, idxSlash);
String sf = name.substring(0, idxSlash).trim();
path = path.getFolders().get(sf);
name = name.substring(idxSlash+1);
name = name.substring(idxSlash+1).trim();
idxSlash = name.indexOf('/');
};
return path.get(name);

View File

@@ -210,7 +210,7 @@ public class FDeckChooser extends JPanel {
}
private <T extends InventoryItem> void addDecksRecursive(IStorage<T> node, List<String> customNames, String namePrefix ) {
String path = namePrefix == null ? "" : namePrefix + "/";
String path = namePrefix == null ? "" : namePrefix + " / ";
for (final String fn : node.getFolders().getNames() )
{
IStorage<T> f = node.getFolders().get(fn);