Comments (10)
when i click, it won't open anything.......
from electron-context-menu.
We can't help if you don't provide more info :/
And also, you shouldn't ask for help here. I come from the electron.js discord server, there we can help you! This is only to track bugs and other stuff.
from electron-context-menu.
well, this kinda looks like a bug, it works before building/packaging the app, but not afterward.
from electron-context-menu.
for more information, I just did what it said on example, it works fine in the dev process
from electron-context-menu.
for more information, I just did what it said on example, it works fine in the dev process
We don't know which app isn't working or how we should repro this issue :/. Maybe create a repro gist or link your repo?
from electron-context-menu.
well, the app is private, but the context menu (literally the example code) in the readme is not working on the production......
i opened a help channel in Electron discord server too (channel number 9)
from electron-context-menu.
here is the code:
const ctxMenu = require("electron-context-menu");
ctxMenu({
window: mainTab,
labels: {
copy: "π | Copy",
paste: "π | Paste",
cut: "β | Cut"
},
/* Context Menu Items */
menu: (actions, params, win, dicSuggestion) => [
/* Custom Buttons */
{
label: 'WinTube v'+version,
icon: path.resolve(__dirname, "..", "..", "src", "icons", "main-min.png"),
enabled: false,
},
{
label: 'Discord Server',
icon: path.resolve(__dirname, "..", "..", "src", "icons", "discord.png"),
click: () => open('https://discord.gg/GBDkr9T')
},
actions.separator(),
/* System Buttons */
actions.copy(),
actions.cut(),
actions.paste(),
actions.separator(),
/* Public Buttons */
{
label: "Exit",
icon: path.resolve(__dirname, "..", "..", "src", "icons", "shutdown.png"),
click: () => app.quit()
},
/* Dev Buttons */
{
label: 'Developer Tools',
icon: path.resolve(__dirname, "..", "..", "src", "icons", "dev-tools.png"),
click: () => mainTab.webContents.openDevTools(),
visible: isDev
},
]
});
it's on 'ready' event btw.
from electron-context-menu.
Where is this code? Main thread? Renderer thread?
from electron-context-menu.
app ready event is obviously on the main thread
from electron-context-menu.
Are you sure you didn't install it as a dev dependency?
from electron-context-menu.
Related Issues (20)
- using the spell checker to replace a misspelled word crashes electronjs. HOT 2
- properties not defined HOT 1
- Unclear documentation: please add sample code for enabling hidden built-in options HOT 2
- Not working in Electron 14.0.0 HOT 1
- Electron 15: Module '"electron"' has no exported member 'WebviewTag' HOT 3
- Interaction with menubar HOT 1
- Enable accelerators for edit options HOT 1
- Ability to hide "Copy Link" and "Save Link As" for `file://` protocol HOT 2
- Incorrect Typescript types for defaultActions
- Default action `saveLinkAs` does not exist in Typescript type definitions
- Add other search engines HOT 4
- Picture in picture HOT 1
- [HELP] get link when right click HOT 2
- Allows to translate "No Guesses Found" when no suggestion are available
- The default options like 'cut' 'copy' 'paste', etc. don't show accelerators next to them HOT 5
- How to add all βPasteβ and βPaste as plain textβ ?
- Can I paste an image? HOT 1
- Shortcuts not working HOT 1
- Not working with Electron version >=27
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from electron-context-menu.