Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的桌面应用程序中使用 Xulrunner Extensions Manager,我希望在重新启动之前收到通知。有办法吗?
(窗口的 onclose() 方法将不起作用..)
"quit-application-requested"您可以为或"quit-application"通知添加观察者。"restart"如果这是重新启动而不是关闭,则data 参数将是。(关于关闭的数据参数的通知有所不同;"quit-application-requested"通过null时"quit-application"通过"shutdown"。)
"quit-application-requested"
"quit-application"
"restart"
null
"shutdown"