mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 05:00:30 +08:00
disable menu bar
This commit is contained in:
parent
4fa96accd6
commit
ae5939d2aa
@ -1,6 +1,6 @@
|
||||
import { electronApp, optimizer, is } from '@electron-toolkit/utils'
|
||||
import { registerIpcMainHandlers } from './utils/ipc'
|
||||
import { app, shell, BrowserWindow } from 'electron'
|
||||
import { app, shell, BrowserWindow, Menu } from 'electron'
|
||||
import { stopCore, startCore } from './core/manager'
|
||||
import { triggerSysProxy } from './resolve/sysproxy'
|
||||
import icon from '../../resources/icon.png?asset'
|
||||
@ -97,6 +97,7 @@ function handleDeepLink(url: string): void {
|
||||
}
|
||||
|
||||
function createWindow(): void {
|
||||
Menu.setApplicationMenu(null)
|
||||
// Create the browser window.
|
||||
window = new BrowserWindow({
|
||||
minWidth: 800,
|
||||
@ -112,7 +113,6 @@ function createWindow(): void {
|
||||
sandbox: false
|
||||
}
|
||||
})
|
||||
|
||||
window.on('ready-to-show', () => {
|
||||
if (!getAppConfig().silentStart) {
|
||||
window?.show()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user