mirror of
https://github.com/p-stream/p-stream.git
synced 2026-04-20 23:42:06 +00:00
restore manual source selection in auth
This commit is contained in:
parent
da67d85760
commit
243314b12a
2 changed files with 9 additions and 0 deletions
|
|
@ -68,6 +68,9 @@ export function useAuthData() {
|
|||
const setEnableDoubleClickToSeek = usePreferencesStore(
|
||||
(s) => s.setEnableDoubleClickToSeek,
|
||||
);
|
||||
const setManualSourceSelection = usePreferencesStore(
|
||||
(s) => s.setManualSourceSelection,
|
||||
);
|
||||
|
||||
const login = useCallback(
|
||||
async (
|
||||
|
|
@ -196,6 +199,10 @@ export function useAuthData() {
|
|||
setEnableHoldToBoost(settings.enableHoldToBoost);
|
||||
}
|
||||
|
||||
if (settings.manualSourceSelection !== undefined) {
|
||||
setManualSourceSelection(settings.manualSourceSelection);
|
||||
}
|
||||
|
||||
if (settings.enableDoubleClickToSeek !== undefined) {
|
||||
setEnableDoubleClickToSeek(settings.enableDoubleClickToSeek);
|
||||
}
|
||||
|
|
@ -222,6 +229,7 @@ export function useAuthData() {
|
|||
setEnableLowPerformanceMode,
|
||||
setEnableNativeSubtitles,
|
||||
setEnableHoldToBoost,
|
||||
setManualSourceSelection,
|
||||
setEnableDoubleClickToSeek,
|
||||
],
|
||||
);
|
||||
|
|
|
|||
|
|
@ -57,6 +57,7 @@ export function VerifyPassphrase(props: VerifyPassphraseProps) {
|
|||
enableLowPerformanceMode: store.enableLowPerformanceMode,
|
||||
enableNativeSubtitles: store.enableNativeSubtitles,
|
||||
enableDoubleClickToSeek: store.enableDoubleClickToSeek,
|
||||
manualSourceSelection: store.manualSourceSelection,
|
||||
}));
|
||||
|
||||
const backendUrl = useBackendUrl();
|
||||
|
|
|
|||
Loading…
Reference in a new issue