gpt4 book ai didi

electron - Electron ,窗口属于托盘。我不希望它显示在停靠栏中

转载 作者:行者123 更新时间:2023-12-03 12:43:26 25 4
gpt4 key购买 nike

在macOS中,右键单击停靠栏中的图标,将显示所有当前窗口并允许它们切换。但是我只想显示一个窗口,如何配置它?另一个窗口属于纸盘。我不希望它显示在停靠栏中。

enter image description here

最佳答案

您是否尝试过将该窗口的skipTaskbar设置为true?

skipTaskbar Boolean (optional) - Whether to show the window in taskbar. Default is false.



您也可以使用 setSkipTaskbar函数在运行时将其隐藏。

PS:我没有尝试过,但是根据您的描述,这可能会对您有所帮助。

关于electron - Electron ,窗口属于托盘。我不希望它显示在停靠栏中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57067586/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com