()
| 108 | } |
| 109 | |
| 110 | init() { |
| 111 | this.tray = this.tray ? this.tray : new Tray(env.trayIconPath); |
| 112 | this.tray.setToolTip(constants.appName); |
| 113 | this.tray.on("right-click", (event) => { |
| 114 | (this.tray as any).popUpContextMenu(this.getMenu("tray")); |
| 115 | }); |
| 116 | this.tray.on("click", (event) => { |
| 117 | bus.at("dispatch", "showWindow"); |
| 118 | }); |
| 119 | } |
| 120 | } |