electron: add basic context menu for inspect element (#20723)

This commit is contained in:
Brendan Allan
2026-04-03 01:41:26 +08:00
committed by GitHub
parent 4a217df094
commit d96ca8c629
3 changed files with 51 additions and 14 deletions
@@ -8,6 +8,9 @@ import type { Event } from "electron"
import { app, BrowserWindow, dialog } from "electron"
import pkg from "electron-updater"
import contextMenu from "electron-context-menu"
contextMenu({ showSaveImageAs: true, showLookUpSelection: false, showSearchWithGoogle: false })
const APP_NAMES: Record<string, string> = {
dev: "OpenCode Dev",
beta: "OpenCode Beta",