Skip to content

Commit 41894b9

Browse files
committed
feat(menu): refactor from class to functions
1 parent 9f3f6bf commit 41894b9

File tree

2 files changed

+339
-307
lines changed

2 files changed

+339
-307
lines changed

src/main/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { BrowserWindow, app, ipcMain, shell } from 'electron';
22
import { join } from 'path';
33
import { is, optimizer, platform } from '@electron-toolkit/utils';
44
import { createLogger } from './logger';
5-
import { MenuBuilder } from './menu';
5+
import { initializeMenu } from './menu';
66
import { initializeSentry } from './sentry';
77

88
initializeSentry();
@@ -52,7 +52,7 @@ function createWindow(): void {
5252
mainWindow.loadFile(join(__dirname, '../renderer/index.html'));
5353
}
5454

55-
new MenuBuilder(mainWindow).buildMenu();
55+
initializeMenu(mainWindow);
5656
}
5757

5858
// This method will be called when Electron has finished

0 commit comments

Comments
 (0)