mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 21:20:29 +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 { electronApp, optimizer, is } from '@electron-toolkit/utils'
|
||||||
import { registerIpcMainHandlers } from './utils/ipc'
|
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 { stopCore, startCore } from './core/manager'
|
||||||
import { triggerSysProxy } from './resolve/sysproxy'
|
import { triggerSysProxy } from './resolve/sysproxy'
|
||||||
import icon from '../../resources/icon.png?asset'
|
import icon from '../../resources/icon.png?asset'
|
||||||
@ -97,6 +97,7 @@ function handleDeepLink(url: string): void {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function createWindow(): void {
|
function createWindow(): void {
|
||||||
|
Menu.setApplicationMenu(null)
|
||||||
// Create the browser window.
|
// Create the browser window.
|
||||||
window = new BrowserWindow({
|
window = new BrowserWindow({
|
||||||
minWidth: 800,
|
minWidth: 800,
|
||||||
@ -112,7 +113,6 @@ function createWindow(): void {
|
|||||||
sandbox: false
|
sandbox: false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
window.on('ready-to-show', () => {
|
window.on('ready-to-show', () => {
|
||||||
if (!getAppConfig().silentStart) {
|
if (!getAppConfig().silentStart) {
|
||||||
window?.show()
|
window?.show()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user