Skip to content

Commit 1aad740

Browse files
author
pompurin404
committed
disable menu bar
1 parent d2e3ce2 commit 1aad740

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { electronApp, optimizer, is } from '@electron-toolkit/utils'
22
import { registerIpcMainHandlers } from './utils/ipc'
3-
import { app, shell, BrowserWindow } from 'electron'
3+
import { app, shell, BrowserWindow, Menu } from 'electron'
44
import { stopCore, startCore } from './core/manager'
55
import { triggerSysProxy } from './resolve/sysproxy'
66
import icon from '../../resources/icon.png?asset'
@@ -97,6 +97,7 @@ function handleDeepLink(url: string): void {
9797
}
9898

9999
function createWindow(): void {
100+
Menu.setApplicationMenu(null)
100101
// Create the browser window.
101102
window = new BrowserWindow({
102103
minWidth: 800,
@@ -112,7 +113,6 @@ function createWindow(): void {
112113
sandbox: false
113114
}
114115
})
115-
116116
window.on('ready-to-show', () => {
117117
if (!getAppConfig().silentStart) {
118118
window?.show()

0 commit comments

Comments
 (0)