fix: mismatching between nightly build and version - jan about (#2114)

* fix: mismatching between nightly build and version - jan about

* fix: remove nightly indicator
This commit is contained in:
Louis 2024-02-21 22:38:11 +07:00 committed by GitHub
parent 94bee0b1b6
commit 51bd375cc8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,7 +8,14 @@ const template: (Electron.MenuItemConstructorOptions | Electron.MenuItem)[] = [
{
label: app.name,
submenu: [
{ role: 'about' },
{
label: `About ${app.name}`,
click: () =>
dialog.showMessageBox({
title: `Jan`,
message: `Jan Version v${app.getVersion()}\n\nCopyright © 2024 Jan`,
}),
},
{
label: 'Check for Updates...',
click: () =>
@ -31,38 +38,9 @@ const template: (Electron.MenuItemConstructorOptions | Electron.MenuItem)[] = [
}),
},
{ type: 'separator' },
{ role: 'services' },
{ type: 'separator' },
{ role: 'hide' },
{ role: 'hideOthers' },
{ role: 'unhide' },
{ type: 'separator' },
{ role: 'quit' },
],
},
{
label: 'Edit',
submenu: [
{ role: 'undo' },
{ role: 'redo' },
{ type: 'separator' },
{ role: 'cut' },
{ role: 'copy' },
{ role: 'paste' },
...(isMac
? [
{ role: 'pasteAndMatchStyle' },
{ role: 'delete' },
{ role: 'selectAll' },
{ type: 'separator' },
{
label: 'Speech',
submenu: [{ role: 'startSpeaking' }, { role: 'stopSpeaking' }],
},
]
: [{ role: 'delete' }, { type: 'separator' }, { role: 'selectAll' }]),
],
},
{
label: 'View',
submenu: [