From ccceb2c84a4a89a1b9a726d2bd5be71b92fca5eb Mon Sep 17 00:00:00 2001 From: Codel1417 Date: Fri, 20 Dec 2024 19:09:00 -0500 Subject: [PATCH] Fix moves not appearing for non-ears --- lib/Backend/action_registry.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Backend/action_registry.dart b/lib/Backend/action_registry.dart index 03373d3c..2a751934 100644 --- a/lib/Backend/action_registry.dart +++ b/lib/Backend/action_registry.dart @@ -298,8 +298,8 @@ class GetAvailableActions extends _$GetAvailableActions { for (BaseStatefulDevice baseStatefulDevice in availableGear) { // check if command matches device type if (baseAction.deviceCategory.contains(baseStatefulDevice.baseDeviceDefinition.deviceType) && ((baseAction.actionCategory == ActionCategory.glowtip && baseStatefulDevice.hasGlowtip.value == GlowtipStatus.glowtip) || baseAction.actionCategory != ActionCategory.glowtip)) { - if (baseAction.deviceCategory.contains(DeviceType.ears)) { - // Handle migrating ears to unified firmware + // Handle migrating ears to unified firmware + if (baseAction.deviceCategory.contains(DeviceType.ears) && baseStatefulDevice.baseDeviceDefinition.deviceType == DeviceType.ears) { if (baseStatefulDevice.isTailCoNTROL.value == tailControlStatus.tailControl) { // skip legacy moves if (baseAction is EarsMoveList) {