mirror of
https://github.com/viarotel-org/escrcpy.git
synced 2024-11-28 01:10:53 +01:00
perf: ♻️ Add context menu
This commit is contained in:
parent
f1106eef4a
commit
f0f25a79ab
@ -1,6 +1,7 @@
|
||||
import path from 'node:path'
|
||||
import { BrowserWindow, app, shell } from 'electron'
|
||||
import { electronApp, optimizer } from '@electron-toolkit/utils'
|
||||
import contextMenu from 'electron-context-menu'
|
||||
|
||||
// process.js 必须位于非依赖项的顶部
|
||||
import './helpers/process.js'
|
||||
@ -26,6 +27,14 @@ if (!debug) {
|
||||
)
|
||||
}
|
||||
|
||||
contextMenu({
|
||||
showCopyImage: false,
|
||||
showSelectAll: false,
|
||||
showSearchWithGoogle: false,
|
||||
showSaveImageAs: true,
|
||||
showInspectElement: !app.isPackaged,
|
||||
})
|
||||
|
||||
// The built directory structure
|
||||
//
|
||||
// ├─┬─┬ dist
|
||||
|
@ -34,6 +34,7 @@
|
||||
"dayjs": "^1.11.10",
|
||||
"electron": "^27.0.3",
|
||||
"electron-builder": "^24.6.4",
|
||||
"electron-context-menu": "^3.6.1",
|
||||
"electron-log": "^5.0.0",
|
||||
"electron-store": "^8.1.0",
|
||||
"electron-updater": "^6.1.4",
|
||||
|
Loading…
Reference in New Issue
Block a user