mirror of
https://github.com/laurent22/joplin.git
synced 2025-01-26 18:58:21 +02:00
Merge branch 'master' of github.com:laurent22/joplin
This commit is contained in:
commit
43bab3c1bd
@ -395,6 +395,12 @@ class NoteTextComponent extends React.Component {
|
|||||||
if (!filePath) return;
|
if (!filePath) return;
|
||||||
await fs.copy(resourcePath, filePath);
|
await fs.copy(resourcePath, filePath);
|
||||||
}}));
|
}}));
|
||||||
|
|
||||||
|
menu.append(new MenuItem({label: _('Copy path to clipboard'), click: async () => {
|
||||||
|
const { clipboard } = require('electron');
|
||||||
|
const { toSystemSlashes } = require('lib/path-utils.js');
|
||||||
|
clipboard.writeText(toSystemSlashes(resourcePath));
|
||||||
|
}}));
|
||||||
} else {
|
} else {
|
||||||
reg.logger().error('Unhandled item type: ' + itemType);
|
reg.logger().error('Unhandled item type: ' + itemType);
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user