neutralinojs / neutralino.js

JavaScript API for Neutralinojs

Home Page:https://neutralino.js.org/docs/api/overview

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Win11 does not display menu

qilecms opened this issue · comments

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!

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

Thanks