From 3ee57831b9f6155e340b9477d90c9907d6b5b989 Mon Sep 17 00:00:00 2001 From: V Date: Wed, 12 Jul 2023 18:56:50 +0200 Subject: [PATCH] Fix maximise button being wrongly disabled --- src/main/mainWindow.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/mainWindow.ts b/src/main/mainWindow.ts index 65f2c46..cd2c9b6 100644 --- a/src/main/mainWindow.ts +++ b/src/main/mainWindow.ts @@ -262,6 +262,8 @@ function createMainWindow() { removeSettingsListeners(); removeVencordSettingsListeners(); + const { staticTitle, transparencyOption } = Settings.store; + const { frameless, macosTranslucency } = VencordSettings.store; const win = (mainWin = new BrowserWindow({ show: false, webPreferences: { @@ -273,18 +275,16 @@ function createMainWindow() { spellcheck: true }, icon: ICON_PATH, - frame: VencordSettings.store.frameless !== true, - ...(Settings.store.transparencyOption !== "none" + frame: frameless !== true, + ...(transparencyOption && transparencyOption !== "none" ? { backgroundColor: "#00000000", backgroundMaterial: Settings.store.transparencyOption, transparent: true } - : { - transparent: false - }), - ...(Settings.store.staticTitle ? { title: "Vencord" } : {}), - ...(VencordSettings.store.macosTranslucency + : {}), + ...(staticTitle ? { title: "Vencord" } : {}), + ...(macosTranslucency ? { vibrancy: "sidebar", backgroundColor: "#ffffff00"