diff --git a/app/src/main/java/me/timschneeberger/rootlessjamesdsp/fragment/FileLibraryDialogFragment.kt b/app/src/main/java/me/timschneeberger/rootlessjamesdsp/fragment/FileLibraryDialogFragment.kt index 6c949a279..65876ba2e 100755 --- a/app/src/main/java/me/timschneeberger/rootlessjamesdsp/fragment/FileLibraryDialogFragment.kt +++ b/app/src/main/java/me/timschneeberger/rootlessjamesdsp/fragment/FileLibraryDialogFragment.kt @@ -368,8 +368,13 @@ class FileLibraryDialogFragment : ListPreferenceDialogFragmentCompat(), TargetFr val foundTags = mutableMapOf /* scripts */>() fileLibPreference.entryValues.forEach { path -> + context?.let { + eelParser.load( + FileLibraryPreference.createFullPathCompat(it, path.toString()), + skipProperties = true + ) + } ?: return@forEach - eelParser.load(FileLibraryPreference.createFullPathCompat(requireContext(), path.toString()), skipProperties = true) if(eelParser.tags.isEmpty()) eelParser.fileName?.let(untaggedScripts::add) eelParser.tags.forEach { tag ->