Skip to content

Commit

Permalink
Merge pull request #7659 from jtpio/current-widget-null
Browse files Browse the repository at this point in the history
Update the notebook tools on tracker.currentChanged
  • Loading branch information
Steven Silvester committed Dec 19, 2019
2 parents 636a1ae + 389c76f commit 0c2ef44
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/notebook-extension/src/index.ts
Expand Up @@ -507,11 +507,11 @@ function activateNotebookTools(
labShell.currentChanged.connect((sender, args) => {
updateTools();
});
} else {
tracker.currentChanged.connect((sender, args) => {
updateTools();
});
}
// A notebook widget could be closed without a change to labShell.currentWidget
tracker.currentChanged.connect((sender, args) => {
updateTools();
});
});

return notebookTools;
Expand Down

0 comments on commit 0c2ef44

Please sign in to comment.