Skip to content

Commit

Permalink
fix: fixed undefined classes in dfl
Browse files Browse the repository at this point in the history
  • Loading branch information
Tormak9970 committed Apr 7, 2024
1 parent 45b1d94 commit 71469ce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/filters/FilterSelect.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
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";
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<BaseModalProps> = ({ 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

Expand Down

0 comments on commit 71469ce

Please sign in to comment.