From 995d4d014e4eea6ecd3b1007869977a2457a3bc7 Mon Sep 17 00:00:00 2001 From: jhyang0 Date: Mon, 7 Jul 2025 16:59:46 +0900 Subject: [PATCH] fix method for windows --- src/electron/windowManager.js | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/electron/windowManager.js b/src/electron/windowManager.js index f60d83f..a069099 100644 --- a/src/electron/windowManager.js +++ b/src/electron/windowManager.js @@ -91,7 +91,9 @@ function createFeatureWindows(header) { }); listen.setContentProtection(isContentProtectionOn); listen.setVisibleOnAllWorkspaces(true,{visibleOnFullScreen:true}); - listen.setWindowButtonVisibility(false); + if (process.platform === 'darwin') { + listen.setWindowButtonVisibility(false); + } const listenLoadOptions = { query: { view: 'listen' } }; if (!shouldUseLiquidGlass) { listen.loadFile(path.join(__dirname, '../app/content.html'), listenLoadOptions); @@ -120,7 +122,9 @@ function createFeatureWindows(header) { const ask = new BrowserWindow({ ...commonChildOptions, width:600 }); ask.setContentProtection(isContentProtectionOn); ask.setVisibleOnAllWorkspaces(true,{visibleOnFullScreen:true}); - ask.setWindowButtonVisibility(false); + if (process.platform === 'darwin') { + ask.setWindowButtonVisibility(false); + } const askLoadOptions = { query: { view: 'ask' } }; if (!shouldUseLiquidGlass) { ask.loadFile(path.join(__dirname, '../app/content.html'), askLoadOptions); @@ -154,7 +158,9 @@ function createFeatureWindows(header) { const settings = new BrowserWindow({ ...commonChildOptions, width:240, maxHeight:400, parent:undefined }); settings.setContentProtection(isContentProtectionOn); settings.setVisibleOnAllWorkspaces(true,{visibleOnFullScreen:true}); - settings.setWindowButtonVisibility(false); + if (process.platform === 'darwin') { + settings.setWindowButtonVisibility(false); + } const settingsLoadOptions = { query: { view: 'settings' } }; if (!shouldUseLiquidGlass) { settings.loadFile(path.join(__dirname,'../app/content.html'), settingsLoadOptions) @@ -315,7 +321,9 @@ function createWindows() { webSecurity: false, }, }); - header.setWindowButtonVisibility(false); + if (process.platform === 'darwin') { + header.setWindowButtonVisibility(false); + } const headerLoadOptions = {}; if (!shouldUseLiquidGlass) { header.loadFile(path.join(__dirname, '../app/header.html'), headerLoadOptions);