MCPcopy
hub / github.com/CopyTranslator/CopyTranslator / getCallback

Method getCallback

src/main/menu-manager.ts:50–58  ·  view source on GitHub ↗
(...args: any[])

Source from the content-addressed store, hash-verified

48 }
49
50 getCallback(...args: any[]): CallBack {
51 return (
52 menuItem?: MenuItem,
53 browserWindow?: BrowserWindow,
54 event?: Event
55 ) => {
56 this.act.dispatch(...args);
57 };
58 }
59
60 actionToMenuItem(action: ActionView): MenuAction {
61 const t = store.getters.locale;

Callers 1

actionToMenuItemMethod · 0.95

Calls 1

dispatchMethod · 0.80

Tested by

no test coverage detected