From 6a6af53233ce7802bd46fa0e392a3b779e0383e6 Mon Sep 17 00:00:00 2001 From: Ariel Juodziukynas Date: Sat, 6 Jan 2024 15:10:23 -0800 Subject: [PATCH] [Fix] Prevent error if experimental features setting is undefined (#3400) Prevent error if exp features setting is undefined --- src/backend/launcher.ts | 2 +- src/common/types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/launcher.ts b/src/backend/launcher.ts index a907509664..87fd04bba5 100644 --- a/src/backend/launcher.ts +++ b/src/backend/launcher.ts @@ -348,7 +348,7 @@ async function prepareWineLaunch( } if ( GlobalConfig.get().getSettings().experimentalFeatures - .automaticWinetricksFixes + ?.automaticWinetricksFixes ) { await installFixes(appName, runner) } diff --git a/src/common/types.ts b/src/common/types.ts index 91f68b0434..64f02544ee 100644 --- a/src/common/types.ts +++ b/src/common/types.ts @@ -91,7 +91,7 @@ export interface AppSettings extends GameSettings { egsLinkedPath: string enableUpdates: boolean exitToTray: boolean - experimentalFeatures: ExperimentalFeatures + experimentalFeatures?: ExperimentalFeatures framelessWindow: boolean hideChangelogsOnStartup: boolean libraryTopSection: LibraryTopSectionOptions