1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-20 18:48:28 +02:00

Desktp: Put back Edit in External Editor button

This commit is contained in:
Laurent Cozic 2020-05-25 11:37:45 +01:00
parent 8c338675d2
commit 0f7deeeac1

View File

@ -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) {