Skip to content

Commit 5f5a544

Browse files
committed
hide custom game exe settings in game
1 parent 1db0f2f commit 5f5a544

File tree

1 file changed

+20
-17
lines changed

1 file changed

+20
-17
lines changed

src/containers/Settings/Tab/Advanced.tsx

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { t } from "i18next";
22
import { StyleSheet, TextInput, TouchableOpacity, View } from "react-native";
33
import Text from "../../../components/Text";
4+
import { IN_GAME } from "../../../constants/app";
45
import { useSettings } from "../../../states/settings";
56
import { useTheme } from "../../../states/theme";
67
import {
@@ -21,24 +22,26 @@ const Advanced = () => {
2122
flex: 1,
2223
}}
2324
>
24-
<View>
25-
<Text semibold color={theme.textPrimary} size={2}>
26-
{t("settings_custom_game_exe_label")}:
27-
</Text>
28-
<View style={styles.pathInputContainer}>
29-
<TextInput
30-
value={customGameExe}
31-
onChangeText={(text) => setCustomGameExe(text)}
32-
style={[
33-
styles.pathInput,
34-
{
35-
color: theme.textPrimary,
36-
backgroundColor: theme.textInputBackgroundColor,
37-
},
38-
]}
39-
/>
25+
{!IN_GAME && (
26+
<View>
27+
<Text semibold color={theme.textPrimary} size={2}>
28+
{t("settings_custom_game_exe_label")}:
29+
</Text>
30+
<View style={styles.pathInputContainer}>
31+
<TextInput
32+
value={customGameExe}
33+
onChangeText={(text) => setCustomGameExe(text)}
34+
style={[
35+
styles.pathInput,
36+
{
37+
color: theme.textPrimary,
38+
backgroundColor: theme.textInputBackgroundColor,
39+
},
40+
]}
41+
/>
42+
</View>
4043
</View>
41-
</View>
44+
)}
4245
<View style={{ flex: 1 }} />
4346
<View
4447
style={{

0 commit comments

Comments
 (0)