From 8cf32f54e7493ed5d9d8c319c4ccfd0513393c9d Mon Sep 17 00:00:00 2001 From: rebel onion <87634197+rebelonion@users.noreply.github.com> Date: Sat, 23 Nov 2024 18:28:26 -0600 Subject: [PATCH] fix: only register enabled extensions --- .../echo/playback/listeners/ControllerListener.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/dev/brahmkshatriya/echo/playback/listeners/ControllerListener.kt b/app/src/main/java/dev/brahmkshatriya/echo/playback/listeners/ControllerListener.kt index 9c898f91..8c97d92e 100644 --- a/app/src/main/java/dev/brahmkshatriya/echo/playback/listeners/ControllerListener.kt +++ b/app/src/main/java/dev/brahmkshatriya/echo/playback/listeners/ControllerListener.kt @@ -39,7 +39,7 @@ class ControllerListener( init { scope.launch { controllerExtensions.collect { extensions -> - extensions?.forEach { + extensions?.filter { it.metadata.enabled }?.forEach { launch { registerController(it) }