Skip to content

Commit

Permalink
Explicitly set the electron app name.
Browse files Browse the repository at this point in the history
To have better menu items on macOS.
("About", "Hide", and "Quit")

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
  • Loading branch information
Akos Kitta authored and kittaakos committed Dec 9, 2019
1 parent 0e64f11 commit 0159cd5
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ const Storage = require('electron-store');
const electronStore = new Storage();
app.on('ready', () => {
// Explicitly set the app name to have better menu items on macOS. ("About", "Hide", and "Quit")
// See: https://github.com/electron-userland/electron-builder/issues/2468
app.setName(applicationName);
const { screen } = electron;
// Remove the default electron menus, waiting for the application to set its own.
Expand Down

0 comments on commit 0159cd5

Please sign in to comment.