Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

187
Vistas
How can I hide the menubar from an Electron app?

I recently started making a desktop app with Electron, and staring at that menu bar that's always there at the top is getting annoying.

So, I went online and scoured the web for a good solution - but most answers I found were either very old, might not be supported in all operating systems, or just weren't what I was looking for. So, here I am, asking a question which will probably be marked a duplicate.

I want to hide the menubar in my app permanently - so setting the autoHideMenuBar property to true won't work, as then the alt key would still show it.

I want to keep functionality like using F11 to get fullscreen as well.

Does anyone know how I can do that?

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

There are normally a few ways to do this, here are some suggestions:

  1. Set menu to null when creating the window:

    const mainWin = new BrowserWindow({menu: null});

  2. Remove menu after window object has been created (Set a blank menu with MacOS):

    const { Menu } = require('electron');

    process.platform === "win32" && mainWin.removeMenu();

    process.platform === "darwin" && Menu.setApplicationMenu(Menu.buildFromTemplate([]));

  3. Using the Menu module from electron:

    const { Menu } = require('electron');

    Menu.setApplicationMenu(null);

about 4 years ago · Juan Pablo Isaza Denunciar

0

You could try this

const { Menu } = require('electron');
Menu.setApplicationMenu(null);
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda