Skip to content

Commit

Permalink
fix menu items
Browse files Browse the repository at this point in the history
  • Loading branch information
kilbot committed Sep 14, 2023
1 parent bedefad commit d3a4638
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/main/menu/app.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// import { showSettings } from '../config/window';
import { MenuItemConstructorOptions } from 'electron';
import { MenuItemConstructorOptions, MenuItem } from 'electron';

import { t } from '../translations';
import { updater } from '../update';
Expand All @@ -13,7 +13,7 @@ export const baseAppMenu: MenuItemConstructorOptions[] = isMac
{ role: 'about' },
{
label: t('Check for Updates', { _tags: 'electron' }) + '…',
click: updater.manualCheckForUpdates,
click: (menuItem: MenuItem) => updater.manualCheckForUpdates(menuItem),
},
// { type: 'separator' },
// {
Expand Down
4 changes: 2 additions & 2 deletions src/main/menu/help.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// import { openOnboardingWindow } from '../onboarding/window';
import { MenuItemConstructorOptions } from 'electron';
import { MenuItemConstructorOptions, MenuItem } from 'electron';

import { t } from '../translations';
import { updater } from '../update';
Expand All @@ -26,7 +26,7 @@ export const baseHelpMenu: MenuItemConstructorOptions = {
{ type: 'separator' },
{
label: t('Check for Updates', { _tags: 'electron' }) + '…',
click: updater.manualCheckForUpdates,
click: (menuItem: MenuItem) => updater.manualCheckForUpdates(menuItem),
},
// {
// label: 'Setup…',
Expand Down
2 changes: 1 addition & 1 deletion src/main/menu/window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const baseWindowSubMenu: MenuItemConstructorOptions[] = [
{ role: 'toggleDevTools' },
{
label: t('Clear App Data', { _tags: 'electron' }),
click: clearAppDataDialog,
click: () => clearAppDataDialog(),
},
],
},
Expand Down

0 comments on commit d3a4638

Please sign in to comment.