text note should change its icon after having new note inserted into, fixes #361

This commit is contained in:
azivner 2019-01-22 21:21:44 +01:00
parent c23387c0fb
commit 2ac560c56e

View file

@ -623,7 +623,10 @@ async function createNote(node, parentNoteId, target, isProtected, saveSelection
await node.getLastChild().setActive(true);
const parentNoteEntity = await treeCache.getNote(node.data.noteId);
node.folder = true;
node.icon = await treeBuilder.getIcon(parentNoteEntity); // icon might change into folder
node.renderTitle();
}
else {