Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

菜单有时会自动缩回 #8

Open
ClumsyLee opened this issue Oct 12, 2015 · 1 comment
Open

菜单有时会自动缩回 #8

ClumsyLee opened this issue Oct 12, 2015 · 1 comment
Labels

Comments

@ClumsyLee
Copy link
Owner

现在更新菜单比较暴力,是直接用新菜单替换旧的,有几个解决方案:

  1. 菜单显示前刷新。不过Electron似乎暂时没有提供类似 aboutToShow 的接口
  2. 点开菜单时停止刷新。不过似乎也没有菜单显示和隐藏事件,Mac下有菜单似乎又无法捕获左键
  3. 减少刷新次数。不过如果小于一分钟,上面的时间就不太准确了
  4. 温柔一点,只改文字。暂时没有相关接口,菜单创建后似乎改不了了

Electron 的 repo 已经有相关问题

@ClumsyLee ClumsyLee added the bug label Oct 12, 2015
@ClumsyLee
Copy link
Owner Author

不过目前可以改进下,菜单模板不变的部分每次就不用构建了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant