mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 13:10:30 +08:00
setApplicationMenu before app ready
This commit is contained in:
parent
729db6e5eb
commit
323c0e12d0
@ -48,6 +48,7 @@ if (!gotTheLock) {
|
|||||||
app.quit()
|
app.quit()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Menu.setApplicationMenu(null)
|
||||||
const initPromise = init()
|
const initPromise = init()
|
||||||
|
|
||||||
app.on('second-instance', async (_event, commandline) => {
|
app.on('second-instance', async (_event, commandline) => {
|
||||||
@ -143,7 +144,6 @@ async function handleDeepLink(url: string): Promise<void> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function createWindow(): Promise<void> {
|
export async function createWindow(): Promise<void> {
|
||||||
Menu.setApplicationMenu(null)
|
|
||||||
const { useWindowFrame = false } = await getAppConfig()
|
const { useWindowFrame = false } = await getAppConfig()
|
||||||
const mainWindowState = windowStateKeeper({
|
const mainWindowState = windowStateKeeper({
|
||||||
defaultWidth: 800,
|
defaultWidth: 800,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user