Commit 1aad740 pompurin404
committed
1 parent d2e3ce2 commit 1aad740 Copy full SHA for 1aad740
File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { electronApp , optimizer , is } from '@electron-toolkit/utils'
2
2
import { registerIpcMainHandlers } from './utils/ipc'
3
- import { app , shell , BrowserWindow } from 'electron'
3
+ import { app , shell , BrowserWindow , Menu } from 'electron'
4
4
import { stopCore , startCore } from './core/manager'
5
5
import { triggerSysProxy } from './resolve/sysproxy'
6
6
import icon from '../../resources/icon.png?asset'
@@ -97,6 +97,7 @@ function handleDeepLink(url: string): void {
97
97
}
98
98
99
99
function createWindow ( ) : void {
100
+ Menu . setApplicationMenu ( null )
100
101
// Create the browser window.
101
102
window = new BrowserWindow ( {
102
103
minWidth : 800 ,
@@ -112,7 +113,6 @@ function createWindow(): void {
112
113
sandbox : false
113
114
}
114
115
} )
115
-
116
116
window . on ( 'ready-to-show' , ( ) => {
117
117
if ( ! getAppConfig ( ) . silentStart ) {
118
118
window ?. show ( )
You can’t perform that action at this time.
0 commit comments