diff --git a/src/components/filters/FilterSelect.tsx b/src/components/filters/FilterSelect.tsx index 1412810..ec8b841 100644 --- a/src/components/filters/FilterSelect.tsx +++ b/src/components/filters/FilterSelect.tsx @@ -1,5 +1,5 @@ import { Fragment, VFC, createElement, useEffect, useState } from "react"; -import { achievementClasses, Focusable, mainMenuAppRunningClasses, ModalRoot, SingleDropdownOption } from "decky-frontend-lib"; +import { achievementClasses, findModule, Focusable, ModalRoot, SingleDropdownOption } from "decky-frontend-lib"; import { FilterDefaultParams, FilterDescriptions, FilterIcons, FilterType } from "./Filters"; import { capitalizeEachWord } from "../../lib/Utils"; import { FilterSelectStyles } from "../styles/FilterSelectionStyles"; @@ -7,6 +7,9 @@ import { IoFilter } from 'react-icons/io5' import { MicroSDeckInterop, microSDeckLibVersion } from '../../lib/controllers/MicroSDeckInterop'; import { BaseModalProps, CustomDropdown } from '../generic/CustomDropdown'; +// TODO: not sure what changed, but this is workin now +export const mainMenuAppRunningClasses: any = findModule((mod) => typeof mod === 'object' && mod?.OverlayAchievements); + const FilterSelectModal: VFC = ({ rgOptions, selectedOption, onSelectOption, closeModal }) => { const [focusable, setFocusable] = useState(false); //this is to briefly (on modal mount) disable focus on all selections except last selected so it is remebered