mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
better display of subfolders
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user