mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
apply suggestions
This commit is contained in:
parent
653afa7210
commit
1d4547c2c8
4 changed files with 8 additions and 9858 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue