From 6629d5a2c8223d4dfba856b0d0b4ad42126ff3fe Mon Sep 17 00:00:00 2001 From: James Hall Date: Tue, 12 Mar 2024 18:03:30 +0000 Subject: [PATCH] fix(#1521): only show Recent Documents menu on supporting platforms. (#1585) Co-authored-by: Anoop M D --- package-lock.json | 2 +- packages/bruno-electron/src/app/menu-template.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 06a53db40..5824c13bb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -31539,4 +31539,4 @@ } } } -} +} \ No newline at end of file diff --git a/packages/bruno-electron/src/app/menu-template.js b/packages/bruno-electron/src/app/menu-template.js index 798c0db95..e662336ae 100644 --- a/packages/bruno-electron/src/app/menu-template.js +++ b/packages/bruno-electron/src/app/menu-template.js @@ -1,4 +1,5 @@ const { ipcMain } = require('electron'); +const os = require('os'); const openAboutWindow = require('about-window').default; const { join } = require('path'); @@ -15,6 +16,7 @@ const template = [ { label: 'Open Recent', role: 'recentdocuments', + visible: os.platform() == 'darwin', submenu: [ { label: 'Clear Recent',