File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
src/frontend/screens/Library/components/LibraryTopBar Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import { Category } from 'frontend/types'
17
17
import { observer } from 'mobx-react-lite'
18
18
import libraryState from '../../../../state/libraryState'
19
19
import storeAuthState from 'frontend/state/storeAuthState'
20
+ import { configStore } from 'frontend/helpers/electronStores'
20
21
21
22
export interface LibraryTopBarInterface {
22
23
filters : DropdownItemType [ ]
@@ -42,6 +43,9 @@ export const LibraryTopBar = observer(
42
43
const isGOGLoggedin = storeAuthState . gog . username
43
44
const isEpicLoggedin = storeAuthState . epic . username
44
45
46
+ const enableSteamIntegration =
47
+ configStore . get_nodefault ( 'settings.enableSteamIntegration' ) ?? false
48
+
45
49
return (
46
50
< Tabs
47
51
onChange = { ( val ) => {
@@ -72,9 +76,11 @@ export const LibraryTopBar = observer(
72
76
< div className = "menu" > GOG</ div >
73
77
</ Tabs . Tab >
74
78
) : null }
75
- < Tabs . Tab value = "steam" >
76
- < div className = "menu" > Steam</ div >
77
- </ Tabs . Tab >
79
+ { enableSteamIntegration ? (
80
+ < Tabs . Tab value = "steam" >
81
+ < div className = "menu" > Steam</ div >
82
+ </ Tabs . Tab >
83
+ ) : null }
78
84
< Tabs . Tab value = "sideload" >
79
85
< div className = "menu" > { t ( 'Other' ) } </ div >
80
86
</ Tabs . Tab >
You can’t perform that action at this time.
0 commit comments