Add openAttachmentCustom

This commit is contained in:
siriusXT
2023-09-07 06:33:51 +00:00
parent 40971afe4f
commit 0424728012
3 changed files with 35 additions and 8 deletions

View File

@@ -44,8 +44,7 @@ export default class RootCommandExecutor extends Component {
openNoteExternallyCommand() {
const noteId = appContext.tabManager.getActiveContextNoteId();
const mime = appContext.tabManager.getActiveContextNoteMime()
const mime = appContext.tabManager.getActiveContextNoteMime();
if (noteId) {
openService.openNoteExternally(noteId, mime);
}
@@ -53,8 +52,9 @@ export default class RootCommandExecutor extends Component {
openNoteCustomCommand() {
const noteId = appContext.tabManager.getActiveContextNoteId();
const mime = appContext.tabManager.getActiveContextNoteMime();
if (noteId) {
openService.openNoteCustom(noteId);
openService.openNoteCustom(noteId, mime);
}
}