File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
src/frontend/screens/Settings/components Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ const AutoDXVK = () => {
16
16
const { platform } = useContext ( ContextProvider )
17
17
const isLinux = platform === 'linux'
18
18
const [ autoInstallVkd3d ] = useSetting ( 'autoInstallVkd3d' , false )
19
+ const [ autoInstallDxvkNvapi ] = useSetting ( 'autoInstallDxvkNvapi' , false )
19
20
const [ wineVersion ] = useSetting ( 'wineVersion' , defaultWineVersion )
20
21
const { appName } = useContext ( SettingsContext )
21
22
const [ installingDxvk , setInstallingDxvk ] = React . useState ( false )
@@ -50,7 +51,10 @@ const AutoDXVK = () => {
50
51
: t ( 'setting.autodxvk' , 'Auto Install/Update DXVK on Prefix' )
51
52
}
52
53
fading = { installingDxvk }
53
- disabled = { installingDxvk || ( isLinux && autoInstallVkd3d ) }
54
+ disabled = {
55
+ installingDxvk ||
56
+ ( isLinux && ( autoInstallDxvkNvapi || autoInstallVkd3d ) )
57
+ }
54
58
/>
55
59
56
60
< InfoIcon
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import InfoIcon from 'frontend/components/UI/InfoIcon'
8
8
9
9
const AutoDXVKNVAPI = ( ) => {
10
10
const { t } = useTranslation ( )
11
+ const [ autoInstallDxvk ] = useSetting ( 'autoInstallDxvk' , false )
11
12
const [ autoInstallDXVKNVAPI , setAutoInstallDXVKNVAPI ] = useSetting (
12
13
'autoInstallDxvkNvapi' ,
13
14
false
@@ -50,7 +51,7 @@ const AutoDXVKNVAPI = () => {
50
51
)
51
52
}
52
53
fading = { installingDxvkNvapi }
53
- disabled = { installingDxvkNvapi }
54
+ disabled = { ! autoInstallDxvk || installingDxvkNvapi }
54
55
/>
55
56
56
57
< InfoIcon
You can’t perform that action at this time.
0 commit comments