electron中使用win.hide()再使用win.show()会引起窗口闪烁问题

只需要在主进程文件里面加这一句代码即可:

app.commandLine.appendSwitch('wm-window-animations-disabled');

  

posted @ 2022-07-29 17:25  明明一颗大白菜  阅读(977)  评论(1编辑  收藏  举报
<-- -->