mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: add hidden achievement description option
This commit is contained in:
parent
ff917b7ecf
commit
1ea98613fb
12 changed files with 65 additions and 123 deletions
|
|
@ -19,6 +19,7 @@ export function SettingsBehavior() {
|
|||
runAtStartup: false,
|
||||
startMinimized: false,
|
||||
disableNsfwAlert: false,
|
||||
showHiddenAchievementsDescription: false,
|
||||
});
|
||||
|
||||
const { t } = useTranslation("settings");
|
||||
|
|
@ -30,6 +31,8 @@ export function SettingsBehavior() {
|
|||
runAtStartup: userPreferences.runAtStartup,
|
||||
startMinimized: userPreferences.startMinimized,
|
||||
disableNsfwAlert: userPreferences.disableNsfwAlert,
|
||||
showHiddenAchievementsDescription:
|
||||
userPreferences.showHiddenAchievementsDescription,
|
||||
});
|
||||
}
|
||||
}, [userPreferences]);
|
||||
|
|
@ -96,6 +99,17 @@ export function SettingsBehavior() {
|
|||
handleChange({ disableNsfwAlert: !form.disableNsfwAlert })
|
||||
}
|
||||
/>
|
||||
|
||||
<CheckboxField
|
||||
label={t("show_hidden_achievement_description")}
|
||||
checked={form.showHiddenAchievementsDescription}
|
||||
onChange={() =>
|
||||
handleChange({
|
||||
showHiddenAchievementsDescription:
|
||||
!form.showHiddenAchievementsDescription,
|
||||
})
|
||||
}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue