From e8cdcde4ed3ce165f386c270d3cc3f2b9ff966b5 Mon Sep 17 00:00:00 2001 From: Codel1417 Date: Sat, 24 Aug 2024 16:17:30 -0400 Subject: [PATCH] Fix audio & glowtip actions with triggers --- lib/Backend/sensors.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Backend/sensors.dart b/lib/Backend/sensors.dart index 790a7bc1..a31f9685 100644 --- a/lib/Backend/sensors.dart +++ b/lib/Backend/sensors.dart @@ -212,8 +212,8 @@ abstract class TriggerDefinition extends ChangeNotifier implements Comparable moveActions = allActionsMapped.where((element) => !const [ActionCategory.glowtip, ActionCategory.audio].contains(element.actionCategory)).toList(); - final BuiltList glowActions = ref.read(getAllActionsForCategoryProvider(ActionCategory.glowtip)); - final BuiltList audioActions = ref.read(getAllActionsForCategoryProvider(ActionCategory.audio)); + final List glowActions = allActionsMapped.where((element) => const [ActionCategory.glowtip].contains(element.actionCategory)).toList(); + final List audioActions = allActionsMapped.where((element) => const [ActionCategory.audio].contains(element.actionCategory)).toList(); BaseAction? baseAction; List actionsToRun = [];