cleanup note open custom

This commit is contained in:
zadam
2023-05-17 23:57:32 +02:00
parent bd8429a0ba
commit 88a961180f
3 changed files with 51 additions and 48 deletions

View File

@@ -54,13 +54,11 @@ export default class RootCommandExecutor extends Component {
openService.openNoteExternally(noteId, mime);
}
}
openNoteCustomCommand() {
const noteId = appContext.tabManager.getActiveContextNoteId();
const mime = appContext.tabManager.getActiveContextNoteMime()
if (noteId) {
openService.openNoteCustom(noteId, mime);
openService.openNoteCustom(noteId);
}
}