MCPcopy
hub / github.com/CopyTranslator/CopyTranslator / init

Method init

src/main/menu-manager.ts:110–119  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 2

getMenuMethod · 0.95
onMethod · 0.80

Tested by

no test coverage detected