From 876e8b9d197f232d3b098cc86c39c84ad4f0743b Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Thu, 5 Mar 2026 15:40:33 -0500 Subject: [PATCH 1/2] BetterSettings: Actually use organizemenu setting --- src/plugins/betterSettings/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/betterSettings/index.tsx b/src/plugins/betterSettings/index.tsx index 1f2578b94..2dde0aa99 100644 --- a/src/plugins/betterSettings/index.tsx +++ b/src/plugins/betterSettings/index.tsx @@ -168,6 +168,7 @@ export default definePlugin({ }, { // Settings cog context menu find: "#{intl::USER_SETTINGS_ACTIONS_MENU_LABEL}", + predicate: () => settings.store.organizeMenu, replacement: [ { match: /(\i)=(.{0,20}openUserSettings\)\(\i\)\));/, From 9567a0af677e55b6d2eb20d9011cc80697a5295c Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Thu, 5 Mar 2026 17:33:12 -0500 Subject: [PATCH 2/2] SongSpotlight Patch File --- .../songSpotlight.desktop/lib/oauth2.tsx | 5 ++--- src/plugins/betterSettings/index.tsx | 17 ----------------- 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/src/equicordplugins/songSpotlight.desktop/lib/oauth2.tsx b/src/equicordplugins/songSpotlight.desktop/lib/oauth2.tsx index 8780a8df0..7bf8e2847 100644 --- a/src/equicordplugins/songSpotlight.desktop/lib/oauth2.tsx +++ b/src/equicordplugins/songSpotlight.desktop/lib/oauth2.tsx @@ -37,10 +37,9 @@ export function presentOAuth2Modal() { if (!access) throw "Access token is missing"; const refresh = res.headers.get("X-Refresh-Token"); - // STUB uncomment this once API is fully rolled out - // if (!refresh) throw "Refresh token is missing"; + if (!refresh) throw "Refresh token is missing"; - useAuthorizationStore.getState().setToken(access, refresh || ""); + useAuthorizationStore.getState().setToken(access, refresh); getData(); showToast("Successfully authorized!", Toasts.Type.SUCCESS); diff --git a/src/plugins/betterSettings/index.tsx b/src/plugins/betterSettings/index.tsx index 2dde0aa99..2ff627903 100644 --- a/src/plugins/betterSettings/index.tsx +++ b/src/plugins/betterSettings/index.tsx @@ -17,18 +17,6 @@ import type { HTMLAttributes } from "react"; import fullHeightStyle from "./fullHeightContext.css?managed"; -type SettingsEntry = { - ariaLabel?: string; - element?: any; - label?: string; - newIndicator?: any; - newIndicatorDismissibleContentTypes?: number[]; - predicate?: () => boolean; - searchableTitles?: string[]; - section: string, - tabPredicate?: () => boolean; -}; - const cl = classNameFactory(""); const Classes = findCssClassesLazy("animating", "baseLayer", "bg", "layer", "layers"); @@ -53,11 +41,6 @@ const settings = definePluginSettings({ } }); -interface TransformedSettingsEntry { - section: string; - items: SettingsEntry[]; -} - interface LayerProps extends HTMLAttributes { mode: "SHOWN" | "HIDDEN"; baseLayer?: boolean;