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:
parent
880134ce80
commit
4920f64816
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user