Skip to content
This repository has been archived by the owner on Dec 20, 2022. It is now read-only.

Commit

Permalink
Fixed an issue that file update outside dbKoda was not reflected in d…
Browse files Browse the repository at this point in the history
…bKoda
  • Loading branch information
guiguan committed Jul 14, 2017
1 parent bc83475 commit 4dae26a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/EditorPanel/View.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,12 @@ class View extends React.Component {
};

if (this.editorObject.path) {
this.props.store.watchFileBackgroundChange(this.id);
const { store } = this.props;
store.openFile(this.editorObject.path, ({ content }) => {
this.doc.setValue(content);
this.doc.markClean();
store.watchFileBackgroundChange(this.id);
});
}

Broker.on(EventType.EXECUTION_EXPLAIN_EVENT, this.executingExplain.bind(this));
Expand Down

0 comments on commit 4dae26a

Please sign in to comment.