Skip to content

Commit

Permalink
Merge pull request #7077 from meeseeksmachine/auto-backport-of-pr-707…
Browse files Browse the repository at this point in the history
…1-on-1.0.x

Backport PR #7071 on branch 1.0.x (Correct `quit_button` test)
  • Loading branch information
jasongrout committed Aug 22, 2019
2 parents 7c5fa3e + fa8caac commit efe7ec2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/mainmenu-extension/src/index.ts
Expand Up @@ -134,8 +134,8 @@ const plugin: JupyterFrontEndPlugin<IMainMenu> = {
logo.id = 'jp-MainLogo';

// Only add quit button if the back-end supports it by checking page config.
let quitButton = PageConfig.getOption('quitButton');
menu.fileMenu.quitEntry = quitButton === 'True';
const quitButton = PageConfig.getOption('quitButton').toLowerCase();
menu.fileMenu.quitEntry = quitButton === 'true';

// Create the application menus.
createEditMenu(app, menu.editMenu);
Expand Down

0 comments on commit efe7ec2

Please sign in to comment.