diff --git a/src/renderer/components/project/ElectronWindowTitle/ElectronWindowTitle.js b/src/renderer/components/project/ElectronWindowTitle/ElectronWindowTitle.js index 3fa5872..7d6e21c 100644 --- a/src/renderer/components/project/ElectronWindowTitle/ElectronWindowTitle.js +++ b/src/renderer/components/project/ElectronWindowTitle/ElectronWindowTitle.js @@ -7,6 +7,10 @@ export default class ElectronWindowTitle extends React.Component { children: React.PropTypes.string.isRequired }; + shouldComponentUpdate(nextProps) { + return this.props.children !== nextProps.children; + } + componentDidMount() { const currentWindow = remote.getCurrentWindow(); currentWindow.setTitle(this.getTitle());