From 456ccf479a82ff897c5c5ac5da50c44cbe25c10b Mon Sep 17 00:00:00 2001 From: AAGaming Date: Fri, 11 Oct 2024 14:58:37 -0400 Subject: [PATCH] fix dropdownmultiselect on beta --- frontend/src/components/modals/DropdownMultiselect.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/modals/DropdownMultiselect.tsx b/frontend/src/components/modals/DropdownMultiselect.tsx index 542898ea..85ddab7d 100644 --- a/frontend/src/components/modals/DropdownMultiselect.tsx +++ b/frontend/src/components/modals/DropdownMultiselect.tsx @@ -2,11 +2,11 @@ import { DialogButton, DialogCheckbox, DialogCheckboxProps, - Export, + findModule, Marquee, Menu, MenuItem, - findModuleExport, + Module, showContextMenu, } from '@decky/ui'; import { FC, useCallback, useEffect, useState } from 'react'; @@ -14,8 +14,8 @@ import { useTranslation } from 'react-i18next'; import { FaChevronDown } from 'react-icons/fa'; // TODO add to dfl -const dropDownControlButtonClass = findModuleExport((e: Export) => - e?.toString?.()?.includes('gamepaddropdown_DropDownControlButton'), +const dropDownControlButtonClasses = findModule((m: Module) => + m?.DropDownControlButton && m?.["duration-app-launch"], ); const DropdownMultiselectItem: FC< @@ -76,7 +76,7 @@ const DropdownMultiselect: FC<{ alignItems: 'center', maxWidth: '100%', }} - className={dropDownControlButtonClass} + className={dropDownControlButtonClasses?.DropDownControlButton} onClick={(evt) => { evt.preventDefault(); showContextMenu(