Skip to content

Commit

Permalink
WHY IS GRAMMARLY FORMATTING GITHUB WEB EDITOR
Browse files Browse the repository at this point in the history
  • Loading branch information
beebls authored Sep 27, 2023
1 parent dba368a commit d3a4b98
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/deckyPatches/NavPatch.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { replacePatch } from "decky-frontend-lib";
import { NavController } from "./NavControllerFinder";
import { globalState, toast } from "../python";
import { globalState, toast, storeWrite } from "../python";

export function enableNavPatch() {
const setGlobalState = globalState!.setGlobalState.bind(globalState);
Expand Down Expand Up @@ -40,3 +40,8 @@ export function disableNavPatch() {
toast("CSS Loader", "Nav Patch Disabled");
return;
}

function setNavPatch(value: boolean) {
value ? enableNavPatch() : disableNavPatch();
storeWrite("enableNavPatch", value + "");
}

0 comments on commit d3a4b98

Please sign in to comment.