@@ -5,6 +5,7 @@ import { CheckboxField } from "@renderer/components";
55import { useAppSelector } from "@renderer/hooks" ;
66import { settingsContext } from "@renderer/context" ;
77import "./settings-behavior.scss" ;
8+ import { QuestionIcon } from "@primer/octicons-react" ;
89
910export function SettingsBehavior ( ) {
1011 const userPreferences = useAppSelector (
@@ -25,6 +26,7 @@ export function SettingsBehavior() {
2526 showHiddenAchievementsDescription : false ,
2627 showDownloadSpeedInMegabytes : false ,
2728 extractFilesByDefault : true ,
29+ enableSteamAchievements : false ,
2830 } ) ;
2931
3032 const { t } = useTranslation ( "settings" ) ;
@@ -45,6 +47,8 @@ export function SettingsBehavior() {
4547 showDownloadSpeedInMegabytes :
4648 userPreferences . showDownloadSpeedInMegabytes ?? false ,
4749 extractFilesByDefault : userPreferences . extractFilesByDefault ?? true ,
50+ enableSteamAchievements :
51+ userPreferences . enableSteamAchievements ?? false ,
4852 } ) ;
4953 }
5054 } , [ userPreferences ] ) ;
@@ -164,6 +168,25 @@ export function SettingsBehavior() {
164168 } )
165169 }
166170 />
171+
172+ < div className = { `settings-behavior__checkbox-container--with-tooltip` } >
173+ < CheckboxField
174+ label = { t ( "enable_steam_achievements" ) }
175+ checked = { form . enableSteamAchievements }
176+ onChange = { ( ) =>
177+ handleChange ( {
178+ enableSteamAchievements : ! form . enableSteamAchievements ,
179+ } )
180+ }
181+ />
182+
183+ < small
184+ className = "settings-behavior__checkbox-container--tooltip"
185+ data-open-article = "steam-achievements"
186+ >
187+ < QuestionIcon size = { 12 } />
188+ </ small >
189+ </ div >
167190 </ >
168191 ) ;
169192}
0 commit comments