chore: disabling resuming real debrid downloads when real debrid is not set

This commit is contained in:
Chubby Granny Chaser
2024-05-30 00:13:53 +01:00
parent 4d61b8586d
commit a34a774fb7
17 changed files with 83 additions and 311 deletions

View File

@@ -5,16 +5,19 @@ import { useTranslation } from "react-i18next";
import * as styles from "./settings-general.css";
import type { UserPreferences } from "@types";
import { useAppSelector } from "@renderer/hooks";
export interface SettingsGeneralProps {
userPreferences: UserPreferences | null;
updateUserPreferences: (values: Partial<UserPreferences>) => void;
}
export function SettingsGeneral({
userPreferences,
updateUserPreferences,
}: SettingsGeneralProps) {
const userPreferences = useAppSelector(
(state) => state.userPreferences.value
);
const [form, setForm] = useState({
downloadsPath: "",
downloadNotificationsEnabled: false,