Skip to content

Commit

Permalink
[Fix] Don't disable controller when disabling logs (#3457)
Browse files Browse the repository at this point in the history
Don't disable controller when disabling logs
  • Loading branch information
arielj authored Jan 21, 2024
1 parent a76e4f1 commit fc212b9
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/frontend/screens/Settings/components/DisableLogs.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { useEffect } from 'react'
import React from 'react'
import { useTranslation } from 'react-i18next'
import useSetting from 'frontend/hooks/useSetting'
import { toggleControllerIsDisabled } from 'frontend/helpers/gamepad'
import { ToggleSwitch } from 'frontend/components/UI'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faCircleInfo } from '@fortawesome/free-solid-svg-icons'
Expand All @@ -10,10 +9,6 @@ const DisableLogs = () => {
const { t } = useTranslation()
const [disableLogs, setDisableLogs] = useSetting('disableLogs', false)

useEffect(() => {
toggleControllerIsDisabled(disableLogs)
}, [disableLogs])

return (
<div className="toggleRow">
<ToggleSwitch
Expand Down

0 comments on commit fc212b9

Please sign in to comment.