mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-03 08:43:48 +03:00
apply suggestions
This commit is contained in:
parent
653afa7210
commit
1d4547c2c8
9853
package-lock.json
generated
9853
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -122,7 +122,8 @@
|
||||
"enable_download_notifications": "Gdy pobieranie zostanie zakończone",
|
||||
"enable_repack_list_notifications": "Gdy dodawany jest nowy repack",
|
||||
"telemetry": "Telemetria",
|
||||
"telemetry_description": "Włącz anonimowe statystyki użycia"
|
||||
"telemetry_description": "Włącz anonimowe statystyki użycia",
|
||||
"language": "Język"
|
||||
},
|
||||
"notifications": {
|
||||
"download_complete": "Pobieranie zakończone",
|
||||
|
@ -27,11 +27,11 @@ export function SettingsGeneral({
|
||||
language: "",
|
||||
});
|
||||
|
||||
const [defaultDownloadsPath, setdefaultDownloadsPath] = useState("");
|
||||
const [defaultDownloadsPath, setDefaultDownloadsPath] = useState("");
|
||||
|
||||
useEffect(() => {
|
||||
async function fetchdefaultDownloadsPath() {
|
||||
setdefaultDownloadsPath(await window.electron.getDefaultDownloadsPath());
|
||||
setDefaultDownloadsPath(await window.electron.getDefaultDownloadsPath());
|
||||
}
|
||||
|
||||
fetchdefaultDownloadsPath();
|
||||
@ -107,7 +107,7 @@ export function SettingsGeneral({
|
||||
<Select value={form.language} onChange={handleLanguageChange}>
|
||||
{Object.keys(languageResources).map((language) => (
|
||||
<option key={language} value={language}>
|
||||
{ISO6391.getName(language)}
|
||||
{ISO6391.getNativeName(language)}
|
||||
</option>
|
||||
))}
|
||||
</Select>
|
||||
|
@ -43,13 +43,15 @@ export function Settings() {
|
||||
updateUserPreferences={handleUpdateUserPreferences}
|
||||
/>
|
||||
);
|
||||
default:
|
||||
case "behavior":
|
||||
return (
|
||||
<SettingsBehavior
|
||||
userPreferences={userPreferences}
|
||||
updateUserPreferences={handleUpdateUserPreferences}
|
||||
/>
|
||||
);
|
||||
default:
|
||||
return <></>
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user