1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Desktop: Fixes #2656: Fix creation of new notes

This commit is contained in:
Laurent Cozic 2020-03-04 16:36:53 +00:00
parent 880134ce80
commit 4920f64816

View File

@ -66,7 +66,8 @@ class MainScreenComponent extends React.Component {
}
UNSAFE_componentWillReceiveProps(newProps) {
if (newProps.windowCommand) {
// Execute a command if any, and if we haven't already executed it
if (newProps.windowCommand && newProps.windowCommand !== this.props.windowCommand) {
this.doCommand(newProps.windowCommand);
}
}