Skip to content

Commit

Permalink
Backport PR #7071: Correct quit_button test
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 authored and MeeseeksDev[bot] committed Aug 22, 2019
1 parent 7c5fa3e commit fa8caac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/mainmenu-extension/src/index.ts
Original file line number Diff line number Diff line change
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 fa8caac

Please sign in to comment.