MCPcopy Create free account
hub / github.com/anomalyco/opencode / runDesktopMenuAction

Function runDesktopMenuAction

packages/desktop/src/renderer/index.tsx:122–136  ·  view source on GitHub ↗
(action)

Source from the content-addressed store, hash-verified

120 })()
121
122 const runDesktopMenuAction: Platform["runDesktopMenuAction"] = (action) => {
123 switch (action) {
124 case "view.resetZoom":
125 resetZoom()
126 return
127 case "view.zoomIn":
128 zoomIn()
129 return
130 case "view.zoomOut":
131 zoomOut()
132 return
133 }
134
135 return window.api.runDesktopMenuAction(action)
136 }
137
138 const storage = (() => {
139 const cache = new Map<string, AsyncStorage>()

Callers

nothing calls this directly

Calls 3

resetZoomFunction · 0.90
zoomInFunction · 0.90
zoomOutFunction · 0.90

Tested by

no test coverage detected