Skip to content

Commit

Permalink
Unable to select file in Open file dialog
Browse files Browse the repository at this point in the history
Signed-off-by: Vitaliy Gulyy <vgulyy@redhat.com>
  • Loading branch information
vitaliy-guliy authored and Vitaliy Gulyy committed Jun 26, 2018
1 parent 1f35a69 commit 2487750
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions packages/filesystem/src/browser/file-dialog/file-dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,9 @@ export class FileDialog extends AbstractDialog<Readonly<FileStatNode> | undefine
) {
super(props);
this.toDispose.push(widget);
this.toDispose.push(this.model.onChanged(() =>
this.update()
));
this.toDispose.push(this.model.onDidOpenFile(() =>
this.accept()
));
this.toDispose.push(this.model.onChanged(() => this.update()));
this.toDispose.push(this.model.onDidOpenFile(() => this.accept()));
this.toDispose.push(this.model.onSelectionChanged(() => this.update()));

const navigationPanel = document.createElement('div');
navigationPanel.classList.add(NAVIGATION_PANEL_CLASS);
Expand All @@ -80,6 +77,7 @@ export class FileDialog extends AbstractDialog<Readonly<FileStatNode> | undefine
setEnabled(this.back, this.model.canNavigateBackward());
setEnabled(this.forward, this.model.canNavigateForward());
this.locationListRenderer.render();
this.widget.update();
}

protected onAfterAttach(msg: Message): void {
Expand Down

0 comments on commit 2487750

Please sign in to comment.