neutralino.js icon indicating copy to clipboard operation
neutralino.js copied to clipboard

Win11 does not display menu

Open qilecms opened this issue 2 years ago • 5 comments

image

qilecms avatar Apr 03 '22 02:04 qilecms

Can you please be specific about which menu are you referring to ?

pathange-s avatar Apr 03 '22 10:04 pathange-s

Navigation menu not generated by code function setTray() { if(NL_MODE != "window") { console.log("INFO: Tray menu is only available in the window mode."); return; } let tray = { icon: "/resources/icons/trayIcon.png", menuItems: [ {id: "VERSION", text: "Get version"}, {id: "SEP", text: "-"}, {id: "QUIT", text: "Quit"} ] }; Neutralino.os.setTray(tray); }

qilecms avatar Apr 04 '22 02:04 qilecms

Navigation menu not generated by code function setTray() { if(NL_MODE != "window") { console.log("INFO: Tray menu is only available in the window mode."); return; } let tray = { icon: "/resources/icons/trayIcon.png", menuItems: [ {id: "VERSION", text: "Get version"}, {id: "SEP", text: "-"}, {id: "QUIT", text: "Quit"} ] }; Neutralino.os.setTray(tray); }

pretty sure the menu you're talking about is the one that shows in the application tray, not on the actual app.

embedvr avatar Apr 04 '22 08:04 embedvr

ok thinkyou!

qilecms avatar Apr 04 '22 08:04 qilecms

Navigation menu not generated by code function setTray() {     if(NL_MODE != "window") {         console.log("INFO: Tray menu is only available in the window mode.");         return;     }     let tray = {         icon: "/resources/icons/trayIcon.png",         menuItems: [             {id: "VERSION", text: "Get version"},             {id: "SEP", text: "-"},             {id: "QUIT", text: "Quit"}         ]     };     Neutralino.os.setTray(tray); }

------------------ 原始邮件 ------------------ 发件人: "Sainath Rao @.>; 发送时间: 2022年4月3日(星期天) 晚上6:15 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [neutralinojs/neutralino.js] Win11 does not display menu (Issue #39)

Can you please be specific about which menu are you referring to ?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

qilecms avatar Oct 11 '22 07:10 qilecms

Closing this since the issue is already answered (setTray renders the tray menu), For implementing the native menu, we have an active feature request: https://github.com/neutralinojs/neutralinojs/issues/507

Thanks

shalithasuranga avatar May 17 '23 09:05 shalithasuranga