feat(tv): add KefinTweaks watchlist toggle to TV settings

The useKefinTweaks setting is stored per-device and only had a toggle in
the mobile settings, so the watchlist feature could never be enabled from
a TV-only install. Add a Plugins section to the TV settings with the same
toggle, disabled when the server plugin locks the setting.
This commit is contained in:
Gauvain
2026-07-05 02:34:52 +02:00
parent f101deb8fa
commit 21635d6eab

View File

@@ -50,7 +50,7 @@ import { clearTopShelfCacheSafely } from "@/utils/topshelf/cache";
export default function SettingsTV() {
const { t } = useTranslation();
const insets = useSafeAreaInsets();
const { settings, updateSettings } = useSettings();
const { settings, updateSettings, pluginSettings } = useSettings();
const { logout, loginWithSavedCredential, loginWithPassword } = useJellyfin();
const [user] = useAtom(userAtom);
const [api] = useAtom(apiAtom);
@@ -877,6 +877,15 @@ export default function SettingsTV() {
onToggle={(value) => updateSettings({ tvThemeMusicEnabled: value })}
/>
{/* Plugins Section */}
<TVSectionHeader title={t("home.settings.plugins.plugins_title")} />
<TVSettingsToggle
label={t("home.settings.plugins.kefinTweaks.watchlist_enabler")}
value={settings.useKefinTweaks}
onToggle={(value) => updateSettings({ useKefinTweaks: value })}
disabled={pluginSettings?.useKefinTweaks?.locked === true}
/>
{/* Storage Section */}
<TVSectionHeader title={t("home.settings.storage.storage_title")} />
<TVSettingsOptionButton