mirror of
https://github.com/movie-web/movie-web.git
synced 2025-01-12 12:59:12 +01:00
Fix subtitles not being able to be turned off while logged in
Co-authored-by: William Oldham <github@binaryoverload.co.uk>
This commit is contained in:
parent
75af3b992d
commit
690b1c6e68
@ -24,7 +24,9 @@ export function useAuthData() {
|
|||||||
const clearProgress = useProgressStore((s) => s.clear);
|
const clearProgress = useProgressStore((s) => s.clear);
|
||||||
const setTheme = useThemeStore((s) => s.setTheme);
|
const setTheme = useThemeStore((s) => s.setTheme);
|
||||||
const setAppLanguage = useLanguageStore((s) => s.setLanguage);
|
const setAppLanguage = useLanguageStore((s) => s.setLanguage);
|
||||||
const setCaptionLanguage = useSubtitleStore((s) => s.setLanguage);
|
const importSubtitleLanguage = useSubtitleStore(
|
||||||
|
(s) => s.importSubtitleLanguage
|
||||||
|
);
|
||||||
|
|
||||||
const replaceBookmarks = useBookmarkStore((s) => s.replaceBookmarks);
|
const replaceBookmarks = useBookmarkStore((s) => s.replaceBookmarks);
|
||||||
const replaceItems = useProgressStore((s) => s.replaceItems);
|
const replaceItems = useProgressStore((s) => s.replaceItems);
|
||||||
@ -72,7 +74,7 @@ export function useAuthData() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (settings.defaultSubtitleLanguage) {
|
if (settings.defaultSubtitleLanguage) {
|
||||||
setCaptionLanguage(settings.defaultSubtitleLanguage);
|
importSubtitleLanguage(settings.defaultSubtitleLanguage);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (settings.applicationTheme) {
|
if (settings.applicationTheme) {
|
||||||
@ -83,7 +85,7 @@ export function useAuthData() {
|
|||||||
replaceBookmarks,
|
replaceBookmarks,
|
||||||
replaceItems,
|
replaceItems,
|
||||||
setAppLanguage,
|
setAppLanguage,
|
||||||
setCaptionLanguage,
|
importSubtitleLanguage,
|
||||||
setTheme,
|
setTheme,
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user