neutralino.js
neutralino.js copied to clipboard
Win11 does not display menu
Can you please be specific about which menu are you referring to ?
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); }
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.
ok thinkyou!
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: @.***>
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