From 7b3db52f05445a1d5b99fdfa598599683ad40ceb Mon Sep 17 00:00:00 2001 From: buqiyuan <1743369777@qq.com> Date: Wed, 6 Jul 2022 15:57:04 +0800 Subject: [PATCH] fix: can not minimize with windows --- src/app/electron-main/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/electron-main/main.ts b/src/app/electron-main/main.ts index 7de20a40..3b1ff3f0 100644 --- a/src/app/electron-main/main.ts +++ b/src/app/electron-main/main.ts @@ -128,7 +128,7 @@ try { ipcMain.on('message', function (event, arg) { console.log('recieve render msg=>', arg, arg.action); //only action from mainView can be executed - if (event.frameId !== 1) return; + // if (event.frameId !== 1) return; switch (arg.action) { case 'minimize': { win.minimize();