From 4920f648164140f22aab82009c7edbf52093197e Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Wed, 4 Mar 2020 16:36:53 +0000 Subject: [PATCH] Desktop: Fixes #2656: Fix creation of new notes --- ElectronClient/gui/MainScreen.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ElectronClient/gui/MainScreen.jsx b/ElectronClient/gui/MainScreen.jsx index dec7ea08f..e4d5abbef 100644 --- a/ElectronClient/gui/MainScreen.jsx +++ b/ElectronClient/gui/MainScreen.jsx @@ -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); } }