Skip to content

Commit 6a3eac1

Browse files
committed
Prevent restoring old state at creation
This prevents issues if we are not opening the same folder as an old session
1 parent 76df410 commit 6a3eac1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ const plugin: JupyterFrontEndPlugin<void> = {
4242
serviceManager.contents.addDrive(drive);
4343

4444
const widget = createFileBrowser('jp-filesystem-browser', {
45-
driveName: drive.name
45+
driveName: drive.name,
46+
// We don't want to restore old state, we don't have a drive handle ready
47+
restore: false
4648
});
4749
widget.title.caption = trans.__('Local File System');
4850
widget.title.icon = listIcon;

0 commit comments

Comments
 (0)