From 8c007476c3843822c82b54f1b00f898be6c5db31 Mon Sep 17 00:00:00 2001 From: V Date: Thu, 18 Jan 2024 21:13:52 +0100 Subject: [PATCH] popout: fix titlebar on windows when using native titlebar --- src/main/utils/popout.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/utils/popout.ts b/src/main/utils/popout.ts index 754fdb0..9d1ac08 100644 --- a/src/main/utils/popout.ts +++ b/src/main/utils/popout.ts @@ -5,6 +5,7 @@ */ import { BrowserWindow, BrowserWindowConstructorOptions } from "electron"; +import { Settings } from "main/settings"; import { handleExternalUrl } from "./makeLinksOpenExternally"; @@ -36,7 +37,7 @@ const DEFAULT_POPOUT_OPTIONS: BrowserWindowConstructorOptions = { backgroundColor: "#2f3136", minWidth: MIN_POPOUT_WIDTH, minHeight: MIN_POPOUT_HEIGHT, - frame: process.platform === "linux", + frame: Settings.store.customTitleBar !== true, titleBarStyle: process.platform === "darwin" ? "hidden" : undefined, trafficLightPosition: process.platform === "darwin"