From 14fb8b5dd9c3409fc9ad7512ed030baba07df7af Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 4 Dec 2024 22:58:32 +0200 Subject: [PATCH] refactor(native-buttons): reduce duplication --- src/services/window.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/services/window.ts b/src/services/window.ts index 27a174b78..5be4e6e80 100644 --- a/src/services/window.ts +++ b/src/services/window.ts @@ -115,14 +115,8 @@ async function createMainWindow(app: App) { function getWindowExtraOpts() { const extraOpts: Partial = {}; if (!optionService.getOptionBool('nativeTitleBarVisible')) { - if (process.platform !== "darwin") { - // Windows, Linux - extraOpts.titleBarStyle = "hidden"; - extraOpts.titleBarOverlay = true; - } else { - // macOS - extraOpts.titleBarStyle = "hiddenInset"; - } + extraOpts.titleBarStyle = "hidden"; + extraOpts.titleBarOverlay = true; } return extraOpts;