Skip to content

Commit

Permalink
disable menu bar
Browse files Browse the repository at this point in the history
  • Loading branch information
pompurin404 committed Aug 5, 2024
1 parent d2e3ce2 commit 1aad740
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/index.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -97,6 +97,7 @@ function handleDeepLink(url: string): void {
}

function createWindow(): void {
Menu.setApplicationMenu(null)
// Create the browser window.
window = new BrowserWindow({
minWidth: 800,
Expand All @@ -112,7 +113,6 @@ function createWindow(): void {
sandbox: false
}
})

window.on('ready-to-show', () => {
if (!getAppConfig().silentStart) {
window?.show()
Expand Down

0 comments on commit 1aad740

Please sign in to comment.