Skip to content

Commit

Permalink
Update PluginSettings.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
beebls committed Sep 27, 2023
1 parent d3a4b98 commit 862c968
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/pages/settings/PluginSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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) {
Expand Down

0 comments on commit 862c968

Please sign in to comment.