Skip to content

Commit

Permalink
fix: mismatching between nightly build and version - jan about (#2114)
Browse files Browse the repository at this point in the history
* fix: mismatching between nightly build and version - jan about

* fix: remove nightly indicator
  • Loading branch information
louis-jan committed Feb 21, 2024
1 parent 94bee0b commit 51bd375
Showing 1 changed file with 8 additions and 30 deletions.
38 changes: 8 additions & 30 deletions electron/utils/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: () =>
Expand All @@ -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: [
Expand Down

0 comments on commit 51bd375

Please sign in to comment.