From 5d3bb71bbf1fb0428ea7384d6a95dfaa94b1ee31 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Tue, 7 May 2024 14:30:37 +0530 Subject: [PATCH] Make the hide dock icon setting macOS only --- desktop/src/main/menu.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/desktop/src/main/menu.ts b/desktop/src/main/menu.ts index 45cbd63624..188b195f82 100644 --- a/desktop/src/main/menu.ts +++ b/desktop/src/main/menu.ts @@ -82,12 +82,14 @@ export const createApplicationMenu = async (mainWindow: BrowserWindow) => { checked: isAutoLaunchEnabled, click: toggleAutoLaunch, }, - { - label: "Hide Dock Icon", - type: "checkbox", - checked: shouldHideDockIcon, - click: toggleHideDockIcon, - }, + ...macOSOnly([ + { + label: "Hide Dock Icon", + type: "checkbox", + checked: shouldHideDockIcon, + click: toggleHideDockIcon, + }, + ]), ], },