summaryrefslogtreecommitdiff
path: root/frontend/src/components/settings
diff options
context:
space:
mode:
authorJesse Bofill <jesse_bofill@yahoo.com>2025-10-06 13:50:02 -0600
committerJesse Bofill <jesse_bofill@yahoo.com>2025-10-06 13:50:02 -0600
commit65f1eb052de17f21144571d932281a0484f48dfd (patch)
tree62838c5fb5e86d0896b78b376abede9103b14e39 /frontend/src/components/settings
parent86b5567d4eac84399245c9a71270d6142ee54ded (diff)
downloaddecky-loader-65f1eb052de17f21144571d932281a0484f48dfd.tar.gz
decky-loader-65f1eb052de17f21144571d932281a0484f48dfd.zip
implement base frontend changes necessary for plugin disabling
Diffstat (limited to 'frontend/src/components/settings')
-rw-r--r--frontend/src/components/settings/pages/plugin_list/index.tsx11
1 files changed, 6 insertions, 5 deletions
diff --git a/frontend/src/components/settings/pages/plugin_list/index.tsx b/frontend/src/components/settings/pages/plugin_list/index.tsx
index 9a7cb076..e244b8a9 100644
--- a/frontend/src/components/settings/pages/plugin_list/index.tsx
+++ b/frontend/src/components/settings/pages/plugin_list/index.tsx
@@ -147,10 +147,11 @@ type PluginData = {
};
export default function PluginList({ isDeveloper }: { isDeveloper: boolean }) {
- const { plugins, updates, pluginOrder, setPluginOrder, frozenPlugins, hiddenPlugins } = useDeckyState();
+ const { installedPlugins, updates, pluginOrder, setPluginOrder, frozenPlugins, hiddenPlugins } = useDeckyState();
+
const [_, setPluginOrderSetting] = useSetting<string[]>(
'pluginOrder',
- plugins.map((plugin) => plugin.name),
+ installedPlugins.map((plugin) => plugin.name),
);
const { t } = useTranslation();
@@ -164,7 +165,7 @@ export default function PluginList({ isDeveloper }: { isDeveloper: boolean }) {
useEffect(() => {
setPluginEntries(
- plugins.map(({ name, version }) => {
+ installedPlugins.map(({ name, version }) => {
const frozen = frozenPlugins.includes(name);
const hidden = hiddenPlugins.includes(name);
@@ -186,9 +187,9 @@ export default function PluginList({ isDeveloper }: { isDeveloper: boolean }) {
};
}),
);
- }, [plugins, updates, hiddenPlugins]);
+ }, [installedPlugins, updates, hiddenPlugins]);
- if (plugins.length === 0) {
+ if (installedPlugins.length === 0) {
return (
<div>
<p>{t('PluginListIndex.no_plugin')}</p>