From 0f7deeeac1665cd46bb014c82bfa92d18133752a Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Mon, 25 May 2020 11:37:45 +0100 Subject: [PATCH] Desktp: Put back Edit in External Editor button --- .../gui/NoteToolbar/NoteToolbar.tsx | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/ElectronClient/gui/NoteToolbar/NoteToolbar.tsx b/ElectronClient/gui/NoteToolbar/NoteToolbar.tsx index f2d1cee2c7b..0e84115b747 100644 --- a/ElectronClient/gui/NoteToolbar/NoteToolbar.tsx +++ b/ElectronClient/gui/NoteToolbar/NoteToolbar.tsx @@ -98,22 +98,22 @@ function useToolbarItems(props:NoteToolbarProps) { }); if (watchedNoteFiles.indexOf(note.id) >= 0) { - // toolbarItems.push({ - // tooltip: _('Click to stop external editing'), - // title: _('Watching...'), - // iconName: 'fa-share-square', - // onClick: () => { - // onButtonClick({ name: 'stopExternalEditing' }); - // }, - // }); + toolbarItems.push({ + tooltip: _('Click to stop external editing'), + title: _('Watching...'), + iconName: 'fa-share-square', + onClick: () => { + onButtonClick({ name: 'stopExternalEditing' }); + }, + }); } else { - // toolbarItems.push({ - // tooltip: _('Edit in external editor'), - // iconName: 'fa-share-square', - // onClick: () => { - // onButtonClick({ name: 'startExternalEditing' }); - // }, - // }); + toolbarItems.push({ + tooltip: _('Edit in external editor'), + iconName: 'fa-share-square', + onClick: () => { + onButtonClick({ name: 'startExternalEditing' }); + }, + }); } if (note.is_todo) {