Skip to content

Commit

Permalink
fix dummy function result padding
Browse files Browse the repository at this point in the history
  • Loading branch information
beebls committed Oct 12, 2024
1 parent 55a52f0 commit fc872d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/decky-patches/decky-patch-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const createDeckyPatchStore = (backend: Backend) =>
initializeStore: async () => {
try {
const shouldEnable = await backend.storeRead("enableNavPatch");
return;
if (shouldEnable) {
const patch = enableNavPatch();
set({ navPatchInstance: patch });
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import { useCSSLoaderValue } from "@/backend";
import { PanelSectionRow } from "@decky/ui";
import { PanelSection, PanelSectionRow } from "@decky/ui";

export function QamDummyFunctionBoundary({ children }: { children: React.ReactNode }) {
const dummyFunctionResult = useCSSLoaderValue("dummyFunctionResult");

if (!dummyFunctionResult) {
return (
<>
<PanelSectionRow>
<PanelSection>
<span>
CSS Loader failed to initialize, try reloading, and if that doesn't work, try restarting
your deck.
</span>
</PanelSectionRow>
</PanelSection>
</>
);
}
Expand Down

0 comments on commit fc872d4

Please sign in to comment.