fix(#1521): only show Recent Documents menu on supporting platforms. (#1585)

Co-authored-by: Anoop M D <anoop.md1421@gmail.com>
This commit is contained in:
James Hall 2024-03-12 18:03:30 +00:00 committed by GitHub
parent 3ee76067fb
commit 6629d5a2c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

2
package-lock.json generated
View File

@ -31539,4 +31539,4 @@
}
}
}
}
}

View File

@ -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',