fix deadlock after "cut to note", closes #1030

This commit is contained in:
zadam
2020-05-19 22:58:08 +02:00
parent fa5d982a55
commit 58f4f5d1e6
7 changed files with 61 additions and 54 deletions

View File

@@ -308,9 +308,10 @@ export default class NoteDetailWidget extends TabAwareWidget {
return;
}
await noteCreateService.createNote(note.noteId, {
// without await as this otherwise causes deadlock through component mutex
noteCreateService.createNote(note.noteId, {
isProtected: note.isProtected,
saveSelection: true
});
}
}
}