Skip to content

Commit 0c1e2e3

Browse files
committed
use zen mode for new notebook created on welcome view
1 parent 6b27752 commit 0c1e2e3

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

python-env-management.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ jlab env set-python-envs-path /opt/python_envs
191191

192192
### `jlab env set-conda-path <path>`
193193

194-
Set base conda executable path. Base conda executable is used to when creating new conda environments, and running conda commands.
194+
Set base conda executable path. Base conda executable is used when creating new conda environments, and running conda commands.
195195

196196
Examples:
197197

src/main/labview/labview.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ export class LabView implements IDisposable {
277277
await this._setUIMode(uiMode);
278278
}
279279

280-
async _setUIMode(uiMode: UIMode) {
280+
private async _setUIMode(uiMode: UIMode) {
281281
this._uiMode = uiMode;
282282

283283
await this._view.webContents.executeJavaScript(`

src/main/sessionwindow/sessionwindow.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -570,8 +570,12 @@ export class SessionWindow implements IDisposable {
570570
this._sessionConfigChanged.emit();
571571

572572
if (type === 'notebook') {
573-
this.labView.labUIReady.then(() => {
574-
this.labView.newNotebook();
573+
this.labView.labUIReady.then(async () => {
574+
await this.labView.newNotebook();
575+
this._setUIMode(
576+
userSettings.getValue(SettingType.uiModeForSingleFileOpen),
577+
false
578+
);
575579
this._hideProgressView();
576580
});
577581
} else {

0 commit comments

Comments
 (0)