File tree Expand file tree Collapse file tree
src/datascience-ui/interactive-common Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ export interface IJupyterInfoProps {
2020export class JupyterInfo extends React . Component < IJupyterInfoProps > {
2121 private get isKernelSelectionAllowed ( ) {
2222 return (
23+ this . props . isNotebookTrusted !== false &&
2324 this . props . kernel . jupyterServerStatus !== ServerStatus . Restarting &&
2425 this . props . kernel . jupyterServerStatus !== ServerStatus . Starting
2526 ) ;
@@ -126,9 +127,7 @@ export class JupyterInfo extends React.Component<IJupyterInfoProps> {
126127 }
127128
128129 private selectKernel ( ) {
129- if ( this . props . isNotebookTrusted ) {
130- this . props . selectKernel ( ) ;
131- }
130+ this . props . selectKernel ( ) ;
132131 }
133132 private getIcon ( ) : ImageName {
134133 return this . props . kernel . jupyterServerStatus === ServerStatus . NotStarted
You can’t perform that action at this time.
0 commit comments