diff --git a/gui.py b/gui.py index 19aa5a1f..77ecb1c6 100644 --- a/gui.py +++ b/gui.py @@ -431,12 +431,13 @@ def select_subdirectories(): if dir_name: subdirs = utils.list_subdirectories(dir_name[0]) - labels = [] + for folder in subdirs: labels_in_folder = folder.split(',') + for label in labels_in_folder: - if not label in labels and not label.startswith('-') and not label in cfg.NON_EVENT_CLASSES: + if not label in labels: labels.append(label) return dir_name[0], [[label] for label in sorted(labels)]