nashaofu/screenshots

win 10 截取 前需先隐藏窗口,我使用win.hide() 后截图依然显示窗口

Opened this issue · 1 comments

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Reproduce repository
You can fork the repository below to test
https://github.com/nashaofu/electron-screenshots-issue

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Versions (please complete the following information):

  • OS: [e.g. iOS]
  • Electron [e.g. 16.0.0]
  • electron-screenshots [e.g. 0.5.0]

Additional context
Add any other context about the problem here.

win.hide()需要时间隐藏,越慢的机子需要的时间越久。截图先setTimeout一下吧