Skip to content

Commit

Permalink
[UX] Make auto install of known fixes not experimental anymore (#4032)
Browse files Browse the repository at this point in the history
Make auto install of known fixes not experimental anymore
  • Loading branch information
arielj authored Nov 17, 2024
1 parent 34fc2b7 commit 74d075d
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 13 deletions.
1 change: 0 additions & 1 deletion public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,6 @@
"esync": "Enable Esync",
"exit-to-tray": "Exit to System Tray",
"experimental_features": {
"automaticWinetricksFixes": "Apply known fixes automatically",
"cometSupport": "Comet support",
"enableHelp": "Help component",
"enableNewDesign": "New design",
Expand Down
5 changes: 2 additions & 3 deletions src/backend/launcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -369,9 +369,8 @@ async function prepareWineLaunch(
if (runner === 'legendary') {
await legendarySetup(appName)
}
if (experimentalFeatures?.automaticWinetricksFixes !== false) {
await installFixes(appName, runner)
}

await installFixes(appName, runner)
}

try {
Expand Down
1 change: 0 additions & 1 deletion src/common/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ export type Release = {
export type ExperimentalFeatures = {
enableNewDesign: boolean
enableHelp: boolean
automaticWinetricksFixes: boolean
cometSupport: boolean
umuSupport: boolean
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ const ExperimentalFeatures = () => {

const FEATURES = ['enableNewDesign', 'enableHelp', 'cometSupport']

if (platform !== 'win32') {
FEATURES.push('automaticWinetricksFixes')
}

if (platform === 'linux') {
FEATURES.push('umuSupport')
}
Expand All @@ -23,7 +19,6 @@ const ExperimentalFeatures = () => {
{
enableNewDesign: false,
enableHelp: false,
automaticWinetricksFixes: true,
cometSupport: true,
umuSupport: false
}
Expand All @@ -43,7 +38,6 @@ const ExperimentalFeatures = () => {
Translations:
t('setting.experimental_features.enableNewDesign', 'New design')
t('setting.experimental_features.enableHelp', 'Help component')
t('setting.experimental_features.automaticWinetricksFixes', 'Apply known fixes automatically')
t('setting.experimental_features.cometSupport', 'Comet support')
t('setting.experimental_features.umuSupport', 'Use UMU as Proton runtime')
*/
Expand Down
1 change: 0 additions & 1 deletion src/frontend/state/ContextProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ const initialContext: ContextType = {
experimentalFeatures: {
enableNewDesign: false,
enableHelp: false,
automaticWinetricksFixes: true,
cometSupport: true,
umuSupport: false
},
Expand Down
1 change: 0 additions & 1 deletion src/frontend/state/GlobalState.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ class GlobalState extends PureComponent<Props> {
experimentalFeatures: {
enableNewDesign: false,
enableHelp: false,
automaticWinetricksFixes: true,
cometSupport: true,
umuSupport: false,
...(globalSettings?.experimentalFeatures || {})
Expand Down

0 comments on commit 74d075d

Please sign in to comment.