electron中文教程
mainWindow.on('closed', () => { 23. // 取消引用 window 对象,如果你的应用支持多窗口的话, 24. // 通常会把多个 window 对象存放在一个数组里面, 25. // 与此同时,你应该删除相应的元素。 26. mainWindow = null; 27. }); 28. } 29. 30. // Electron 'New Window', 9. description: 'Create a new window' 10. } 11. ]); 调用 app.setUserTasks 并传入空数组就可以清除你的任务列表: 1. app.setUserTasks([]); 当你的应用关闭时,用户任务会仍然会出现,在你的应用被卸载前,任务指定的图标和程序的路径必须是存在的。 在 Windo function() { console.log("button2 clicked."); } 18. } 19. ]); 调用 BrowserWindow.setThumbarButtons 并传入空数组即可清空缩略图工具栏: 1. win.setThumbarButtons([]); Windows Media Player 的缩略图工具栏 Unity launcher 快捷方式(Linux)0 码力 | 203 页 | 2.72 MB | 1 年前3
共 1 条
- 1













