From 4b8a37f5198cee8fbcdf150cbd936aed21384644 Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Thu, 14 Jul 2022 12:07:45 -0700 Subject: [PATCH] Fix missing titlebar on Windows --- app/main.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/main.ts b/app/main.ts index 544c93869b..217e206b70 100644 --- a/app/main.ts +++ b/app/main.ts @@ -608,9 +608,9 @@ if (OS.isWindows()) { } const mainTitleBarStyle = - OS.isLinux() || isTestEnvironment(getEnvironment()) - ? ('default' as const) - : ('hidden' as const); + OS.hasCustomTitleBar() && !isTestEnvironment(getEnvironment()) + ? ('hidden' as const) + : ('default' as const); const nonMainTitleBarStyle = OS.hasCustomTitleBar() ? ('hidden' as const)