faster opening of the date notes (no animation)

This commit is contained in:
zadam
2019-04-14 18:16:15 +02:00
parent 71916b5e28
commit 1bd769827d
4 changed files with 6 additions and 2 deletions

View File

@@ -117,7 +117,7 @@ $("body").on("click", "a.external", function () {
if (utils.isElectron()) {
require('electron').ipcRenderer.on('create-day-sub-note', async function(event) {
const todayNote = await dateNoteService.getTodayNote();
const node = await treeService.expandToNote(todayNote.noteId);
const node = await treeService.expandToNote(todayNote.noteId, {noAnimation: true});
await treeService.createNote(node, todayNote.noteId, 'into', {
type: "text",