fix: can not minimize with windows

This commit is contained in:
buqiyuan 2022-07-06 15:57:04 +08:00
parent 820f80b298
commit 7b3db52f05

View File

@ -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();