From 862c968d8f944ad7043512013ec8f923fcf91ec4 Mon Sep 17 00:00:00 2001 From: Beebles <102569435+beebls@users.noreply.github.com> Date: Wed, 27 Sep 2023 09:43:47 -0600 Subject: [PATCH] Update PluginSettings.tsx --- src/pages/settings/PluginSettings.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/pages/settings/PluginSettings.tsx b/src/pages/settings/PluginSettings.tsx index 0395c71..4056839 100644 --- a/src/pages/settings/PluginSettings.tsx +++ b/src/pages/settings/PluginSettings.tsx @@ -2,7 +2,7 @@ import { Focusable, ToggleField } from "decky-frontend-lib"; import { useMemo, useState, useEffect } from "react"; import { useCssLoaderState } from "../../state"; import { storeWrite } from "../../python"; -import { disableNavPatch, enableNavPatch } from "../../deckyPatches/NavPatch"; +import { setNavPatch } from "../../deckyPatches/NavPatch"; import { getWatchState, getServerState, @@ -17,11 +17,6 @@ export function PluginSettings() { const navPatchEnabled = useMemo(() => !!navPatchInstance, [navPatchInstance]); - function setNavPatch(value: boolean) { - value ? enableNavPatch() : disableNavPatch(); - storeWrite("enableNavPatch", value + ""); - } - useEffect(() => { getServerState().then((res) => { if (res.success) {