fix: show only directories in profiles list
This commit is contained in:
parent
4eb068a2a1
commit
aa09edda1b
1 changed files with 3 additions and 1 deletions
|
|
@ -36,7 +36,9 @@ public class ProfilesList extends ContainerObjectSelectionList<ProfilesList.Prof
|
|||
try (DirectoryStream<Path> directoryStream = Files.newDirectoryStream(Profiles.PROFILES_DIRECTORY)) {
|
||||
List<Path> profileList = new ArrayList<>();
|
||||
for (Path profile : directoryStream) {
|
||||
profileList.add(profile);
|
||||
if (Files.isDirectory(profile)) {
|
||||
profileList.add(profile);
|
||||
}
|
||||
}
|
||||
|
||||
// Sort the list alphabetically based on the profile names
|
||||
|
|
|
|||
Loading…
Reference in a new issue