Molunerfinn / PicGo

:rocket:A simple & beautiful tool for pictures uploading built by vue-cli-electron-builder
https://molunerfinn.com/PicGo/
MIT License
24.21k stars 2.24k forks source link

[Bug]: 右击窗口不显示,一闪而过 #1217

Closed QThans closed 9 months ago

QThans commented 9 months ago

前置阅读 | Pre-reading

PicGo的版本 | PicGo Version

v2.4.0-beta.6

系统信息 | System Information

Mac(arm64)

问题重现 | Bug reproduce

https://github.com/Molunerfinn/PicGo/assets/18275400/0137d559-839f-460d-a63b-5d5f27e8217e

相关日志 | Logs

No response

Molunerfinn commented 9 months ago

没法复现,不过可以试试按住 cmd 键拖拽 picgo 图标到右边一些,可能在最左边处于隐藏状态了

QThans commented 9 months ago

没法复现,不过可以试试按住 cmd 键拖拽 picgo 图标到右边一些,可能在最左边处于隐藏状态了

尝试了还是不行,我clone下代码看看

QThans commented 9 months ago

https://github.com/Molunerfinn/PicGo/assets/18275400/45528d12-577b-4a62-a8df-d1f9de2a3438

加上timeout以后就可以了,我对electron不太熟,不知道具体原因.debug中无意发现.

QThans commented 9 months ago

测试了会儿,看了会儿文档,觉得可能还是electron的问题。 我的Mac,2023 Mac mini M2 16G OS:14.3.1 (23D60)

QThans commented 9 months ago

@Molunerfinn 可以按照这样修复吗?

Molunerfinn commented 9 months ago

可以的,我回头试一下。这个一定要200ms么,setTimeout 0 可以么

QThans commented 9 months ago

setTimeout以后就可以

Molunerfinn commented 9 months ago

好的,我处理一波