improve "open" button behaviour for files when in browser

This commit is contained in:
Charles Dagenais
2022-09-21 21:41:51 -04:00
parent 9f744153e3
commit 73ad557784
6 changed files with 23 additions and 7 deletions

View File

@@ -45,9 +45,10 @@ export default class RootCommandExecutor extends Component {
openNoteExternallyCommand() {
const noteId = appContext.tabManager.getActiveContextNoteId();
const mime = appContext.tabManager.getActiveContextNoteMime()
if (noteId) {
openService.openNoteExternally(noteId);
openService.openNoteExternally(noteId, mime);
}
}