Fix #5765 Trusted state handling (#5775)

- Notebooks Can be Improperly Trusted After Save + Reopen
Fix was to only save if actually trusted.
Also fixed condition where it wasn't correctly skipping if in the queue
This commit is contained in:
Kevin Cunnane
2019-05-31 10:21:30 -07:00
committed by GitHub
parent 6b76611c93
commit a364af5c4c
2 changed files with 14 additions and 9 deletions

View File

@@ -377,9 +377,9 @@ export class AttachToDropdown extends SelectBox {
}).catch(err =>
this.logService.error(err));
}
model.onValidConnectionSelected(validConnection => {
this._register(model.onValidConnectionSelected(validConnection => {
this.handleContextsChanged(!validConnection);
});
}));
}
private getKernelDisplayName(): string {