MCPcopy Index your code
hub / github.com/21st-dev/1code / setUpdateAvailable

Function setUpdateAvailable

src/main/index.ts:870–874  ·  view source on GitHub ↗
(available: boolean, version?: string)

Source from the content-addressed store, hash-verified

868
869 // Set update state and rebuild menu
870 const setUpdateAvailable = (available: boolean, version?: string) => {
871 updateAvailable = available
872 availableVersion = version || null
873 buildMenu()
874 }
875
876 // Unlock devtools and rebuild menu (called from renderer via IPC)
877 const unlockDevTools = () => {

Callers 1

initAutoUpdaterFunction · 0.85

Calls 1

buildMenuFunction · 0.85

Tested by

no test coverage detected