Skip to content

Commit

Permalink
Desktp: Put back Edit in External Editor button
Browse files Browse the repository at this point in the history
  • Loading branch information
laurent22 committed May 25, 2020
1 parent 8c33867 commit 0f7deee
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions ElectronClient/gui/NoteToolbar/NoteToolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0f7deee

Please sign in to comment.