main.ts: Fix main title bar check

This commit is contained in:
Scott Nonnenberg
2022-07-15 14:50:24 -07:00
committed by GitHub
parent 99d507a74d
commit 3cd77b0d53

View File

@@ -608,7 +608,8 @@ if (OS.isWindows()) {
} }
const mainTitleBarStyle = const mainTitleBarStyle =
OS.hasCustomTitleBar() && !isTestEnvironment(getEnvironment()) (OS.isMacOS() || OS.hasCustomTitleBar()) &&
!isTestEnvironment(getEnvironment())
? ('hidden' as const) ? ('hidden' as const)
: ('default' as const); : ('default' as const);