fix the copy and paste shortcut keys are not working on MacOS

This commit is contained in:
pompurin404 2024-09-12 11:58:49 +08:00
parent 5e1d2db8ce
commit 6fb80a848f
No known key found for this signature in database
2 changed files with 6 additions and 1 deletions

View File

@ -7,3 +7,7 @@
- 代理组图标支持SVG格式 - 代理组图标支持SVG格式
- 优化覆写启用逻辑 - 优化覆写启用逻辑
- 覆写支持全局启用 - 覆写支持全局启用
### Bug Fixes
- 修复 MacOS 上复制粘贴快捷键失效的问题

View File

@ -48,7 +48,6 @@ 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) => {
@ -149,6 +148,8 @@ export async function createWindow(): Promise<void> {
defaultWidth: 800, defaultWidth: 800,
defaultHeight: 600 defaultHeight: 600
}) })
// https://github.com/electron/electron/issues/16521#issuecomment-582955104
Menu.setApplicationMenu(null)
mainWindow = new BrowserWindow({ mainWindow = new BrowserWindow({
minWidth: 800, minWidth: 800,
minHeight: 600, minHeight: 600,