fix closing a directory
This commit is contained in:
parent
cc8c3f8ad6
commit
79f2974c39
2 changed files with 9 additions and 2 deletions
|
@ -242,7 +242,7 @@ const Editor: Component<{ root: FileSystemDirectoryHandle }> = (props) => {
|
|||
await filesContext.open(directory);
|
||||
}, { key: 'o', modifier: Modifier.Control }),
|
||||
close: createCommand('page.edit.command.close', async () => {
|
||||
filesContext.remove('__root__');
|
||||
await filesContext.close();
|
||||
}),
|
||||
closeTab: createCommand('page.edit.command.closeTab', async (id: string) => {
|
||||
filesContext.remove(id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue