diff --git a/changelog.md b/changelog.md index 3994f40..63c3e30 100644 --- a/changelog.md +++ b/changelog.md @@ -7,3 +7,7 @@ - 代理组图标支持SVG格式 - 优化覆写启用逻辑 - 覆写支持全局启用 + +### Bug Fixes + +- 修复 MacOS 上复制粘贴快捷键失效的问题 diff --git a/src/main/index.ts b/src/main/index.ts index e7a420f..386bba5 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -48,7 +48,6 @@ if (!gotTheLock) { app.quit() } -Menu.setApplicationMenu(null) const initPromise = init() app.on('second-instance', async (_event, commandline) => { @@ -149,6 +148,8 @@ export async function createWindow(): Promise { defaultWidth: 800, defaultHeight: 600 }) + // https://github.com/electron/electron/issues/16521#issuecomment-582955104 + Menu.setApplicationMenu(null) mainWindow = new BrowserWindow({ minWidth: 800, minHeight: 600,