diff --git a/src/renderer/src/pages/game-details/modals/download-settings-modal.tsx b/src/renderer/src/pages/game-details/modals/download-settings-modal.tsx index 9293071f..c0ea5df1 100644 --- a/src/renderer/src/pages/game-details/modals/download-settings-modal.tsx +++ b/src/renderer/src/pages/game-details/modals/download-settings-modal.tsx @@ -38,21 +38,13 @@ export function DownloadSettingsModal({ (state) => state.userPreferences.value ); - const getAutomaticExtractionValue = () => { - if (userPreferences?.extractFilesByDefault === undefined) { - window.electron.updateUserPreferences({ extractFilesByDefault: true }); - } - - return userPreferences?.extractFilesByDefault ?? true; - }; - const { showErrorToast } = useToast(); const [diskFreeSpace, setDiskFreeSpace] = useState(null); const [selectedPath, setSelectedPath] = useState(""); const [downloadStarting, setDownloadStarting] = useState(false); const [automaticExtractionEnabled, setAutomaticExtractionEnabled] = useState( - getAutomaticExtractionValue() + userPreferences?.extractFilesByDefault ?? true ); const [selectedDownloader, setSelectedDownloader] = useState(null);