We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In the recent update, I have commented the old createMenuTray function in main.ts
main.ts
the task for this issue to reimplement the basic version of the tray icon. First, make sure you have done npm install in your latest pull. Then,
npm install
tray-icon.ts
browser-window.ts
const contextMenu = Menu.buildFromTemplate([ { label: 'Item1', type: 'radio' }, { label: 'Item2', type: 'radio' }, { label: 'Item3', type: 'radio', checked: true }, { label: 'Item4', type: 'radio' } ])
Right now, we only need one option in the menu Quit which will quit the app.
Quit
after you write this config file import it on main.ts and use inside createMenuTray and uncomment the call statement of this function.
createMenuTray
Make sure you use the current tray icon image, residing at src/assets/images/tray.png
src/assets/images/tray.png
That's all test your changes and feel free to ask any questions
Find the docs for tray here: https://www.electronjs.org/docs/api/tray
The text was updated successfully, but these errors were encountered:
Hi! I am interested in this issue.
Sorry, something went wrong.
Sure, please go ahead.
divija-palleti
No branches or pull requests
In the recent update, I have commented the old createMenuTray function in
main.ts
the task for this issue to reimplement the basic version of the tray icon. First, make sure you have done
npm install
in your latest pull. Then,tray-icon.ts
config file just likebrowser-window.ts
which will export the object from contextMenu like:Right now, we only need one option in the menu
Quit
which will quit the app.after you write this config file import it on
main.ts
and use insidecreateMenuTray
and uncomment the call statement of this function.Make sure you use the current tray icon image, residing at
src/assets/images/tray.png
That's all test your changes and feel free to ask any questions
Find the docs for tray here: https://www.electronjs.org/docs/api/tray
The text was updated successfully, but these errors were encountered: